Jump to content

A Quick Introduction to Unix/exercises2

From Wikibooks, open books for an open world


Task One

[edit | edit source]

Use the commands cd, ls and pwd to explore the file system. (Remember, if you get lost, type cd by itself or cd ~ to return to your home-directory).

Task Two

[edit | edit source]

Make a directory in your home directory called unixstuff. Make another directory inside the unixstuff directory called archive.


Click to see the correct command lines
% mkdir ~/unixstuff
% mkdir ~/unixstuff/archive

Task Three

[edit | edit source]

Complete the following text that summarizes the meaning of some commands that we have covered.

Using most varieties of UNIX, the user can get a listing of files in the current directory using the command

. To find out which is the current directory in the file system, the user types

and to change back to the home directory from any place in the file system, the user can type

or

in most flavours of UNIX.


Task Four

[edit | edit source]

Complete the following text that summarizes the meaning of some commands that we have covered.

Using most varieties of UNIX, the user can move to the directory immediately above the current directory by typing

and to indicate the current directory, the user can type

.