Help sheet for navigating Unix shell on the Mac, or the command prompt on PCs.



1)  Getting to the command line.
2)  Navigating directories/folders.   A few useful commands.
Example.

>   pwd
/Users/scottm

>  ls
Courses           Grading   info.txt
Java             Programs    resume.doc      
todo.xls

This shows folders named Courses, Grading, Java, and Programs, and files called info.txt, resume.doc, and todo.xls.

> cd Courses

We should now be inside the Courses folder.

> ls
15-100   15-128
15-391

This shows 3 folders for 3 courses.

> cd 15-100
Now we should be inside the 15-100 folder.

> pwd
/Users/scottm/Courses/15-100

> cd ..

Take us back up a level.

> pwd
/Users/scottm/Courses

> cd 15-391
Now we should be inside the 15-391 folder.

> cd
Take us "home".

>   pwd
/Users/scottm