March 2002
Beginner
504 pages
10h 47m
English
Now that we have covered the basics of the directory tree, let's look at moving around the tree using the cd (short for change directory) command.
First print the working directory:
$ pwd /home/ranga
The preceding example should indicate to you that I am in my home directory. Your home directory is the initial directory where you start when you log in to a UNIX machine. The easiest way to determine the location of your home directory is to do the following:
$ cd $ pwd /home/ranga
When you issue the cd command without arguments, it changes the current directory to your home directory. After the cd command completes, the pwd command prints the working directory, which happens to be your home directory. ...
Read now
Unlock full access