If you can see this check that
| next section | prev section | up | prev page | next page |
% cd projectswill move you into the directory projects, and to verify this use the pwd command.
% pwd /home/john/projects
To move into the directory stuff under projects, type:
% cd stuff % pwd /home/john/projects/stuff
Remembering that '..' is the relative path name for the parent directory of your current working directory, then to move up one level back to projects type:
% cd .. % pwd /home/john/projectsAnd if you run the cd command without a path name, it always returns you to your home directory.
% cd % pwd /home/johnAlso you can get to any directory by using its absolute path name. For example, to change to the projects directory you could enter:
% cd /home/john/projects
Finally, the figure below illustrates how various cd commands change your current working directory. The example assumes that you are currently located in the directory /home/john/projects, and that your home directory is /home/john.
| Tutlinks: | intro1 intro2 wildcard permission pipe vi essential admin net fwall DNS diag Apache1 Apache2 MySQL1 MySQL2 |
| Useful: | Quiz Forums |
| Site Links: | XMLZoo ActiveSQL ProgZoo SQLZoo |