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. If all there was for a day was a single handout, you'll find it named MM-DD.pdf. If there is more than one file, there will instead be in a directory named MM-DD. For example, to list the files from September 4, you could use the command

ls /cslab/class/csci235/in-class/09-04

You might then see something like

09-04.pdf	Pangram-1.java	Pangram-3.java
Pangram-0.java	Pangram-2.java	Pangram.java

Any .pdf files are formatted for printing.

To look at a .pdf file online, use the a command like

evince /cslab/class/csci235/in-class/09-04/09-04.pdf &

From within that program, you can select and print particular pages. Or, to print the entire file, use

lpr -Pcs /cslab/class/csci235/in-class/09-04/09-04.pdf

Files that are not yet formatted for printing can be formatted more nicely by the a2ps command. The code handouts from class are typically produced with

a2ps -2 --file-align=fill -Pcs filenames...
The -2 says to print two pages per sheet, and --file-align=fill says to fill all the available space.

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. (More info about that will show up in the Mercurial tips.)


Cary Gray

Last modified: Thu Aug 29 15:36:19 CDT 2013

Valid HTML 4.01!