Skip to main content
  • Home
  • FAQ
  • Printing
  • What command should I use to print from the Shell Servers?

Printing

What command should I use to print from the Shell Servers?

One command you can use is a2ps by typing:

$ a2ps -P bw138aer filename

The a2ps command is useful for homework submission as it adds your username as well as a date and time stamp on the document.

A command you can use for printing out graphics is lp by typing:

$ lp -d bw138aer filename

When using this command you also need to set your printer to one nearby. Look at the next FAQ item for more information on how to do that.

Look at the manual pages for more information about these two print commands by typing the following commands in a terminal prompt:

$ man a2ps 
$ man lp

Example using a2ps to print the file lab.java to the 138 AER printer:

$ a2ps -P bw138aer lab.java

Documentation