CSCI 235: Getting Example Files

On the cslab computers, you'll find the public directory for this class at

/cslab/class/csci235

Note that these files are not available as web pages. You must be logged in to one of the lab computers to access them (though you can copy them from there to your own computer, if you wish).

The files from class will show up under the directory in-class, with a directory named for the class date in MM-DD form. For example, to list the files from August 30, you would use the command

ls /cslab/class/csci235/in-class/08-30

You might then see something like

08-30.ps	Pangram-1.java	Pangram-3.java
Pangram-0.java	Pangram-2.java	Pangram.java

If there are any .ps or .pdf files in a directory, those are formatted for printing. To look at such a file, if 08-30.ps were in the 08-30 directory (to decide whether to print it), you would use the command

evince /cslab/class/csci235/in-class/08-30/08-30.ps &

To print that file on the lab printer, you would use

lpr -Pcsprint /cslab/class/csci235/in-class/08-30/08-30.ps

You use the lpr command here instead of a2ps because the file has already been formatted for printing.

Later in the semester, some of the directories will be Mercurial repositories, in which case you can retreive earlier versions of the files. If you use ls -a, the presence of a subdirectory named .hg indicates that there is a repository present. To look at earlier versions, you would clone the repository to your own working copy, then use hg log to find out what versions exist and hg revert to get particular versions.


Cary Gray

Last modified: Mon Jan 10 16:53:34 CST 2011

Valid HTML 4.01!