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.
Whenever you are running programs, you will have a "working directory" that represents where your program starts looking for files. This is often the directory where you launch the application from, which is not necessarily the directory where the program itself resides. To determine the directory where you are currently located, use the pwd command, as follows:
$ pwd
/afs/.ir/users/c/g/cgregg
If you change to another directory, you will have a new working directory:
$ pwd
/afs/.ir/users/c/g/cgregg
$ cd 107
$ pwd
/afs/.ir/users/c/g/cgregg/107
If you run a program and it cannot find your files, the first thing to check is the working directory.