NOTE: this website is out of date. This is the course web site from a past quarter. If you are a current student taking the course, you should visit the current class web site instead. If the current quarter's website is easily reached, it may be accessible by visiting this link instead. Please be advised that courses' policies change with each new quarter and instructor, and any information on this out-of-date page may not apply to you.
Written by Chris Gregg, with modifications by Nick Troccoli
Click here for a walkthrough video.
The cd command is used to change the directory where you are currently working. The command accepts absolute or relative paths, and you will use it every time you log onto the myth computers.
If you are someplace in the filesystem and you want to go down a level into a folder, you can do this:
$ ls
file2.c Makefile myfile.txt MyFolder
$ cd MyFolder
$ ls
item1.txt item2.txt
To change to your home directory:
cd ~
or
cd
To change to the parent directory:
cd ..
To change to a sibling directory:
cd ../siblingName