<<Back to Article

Cd

/skill level/
/viewed/
0 Times


cd (or chdir) stands for "change directory." This command is key to moving around your file structure.

Structure:cd [name of directory you want to move to]

When changing directories, start with / and then type the complete file path, like so:

cd /webmonkey/chimp/

If you want to enter a subdirectory of the directory that you're currently in, then omit the first /. So if you wanted to stay in the chimp directory but move to the simian subdirectory, you'd type:

 cd simian/

Back to Unix Guide

  • This page was last modified 18:40, 7 May 2008.
Edit this article
Reddit Digg