Next: Electronic mail
Up: Beginner's Guide
Previous: The GNU emacs file
Contents
For example, to print a file named foo.c
one would use the following command:
lpr foo.c
Generally speaking, each lab has a printer that will be your
default printer. The name of the printer is the same as the room where it
is located. For example, the printer in room ET213 is called et213.
If you do not wish to use the default, then you can
specify the name of the printer in the lpr command as
follows:
lpr -Pet213 foo.c
where et213 is the name of the printer.
- Checking on a print job
To check the printer queue use the command lpq. Optionally
you can also provide the name of the printer as follows: lpq -Pet213.
- Deleting a print job:
Type lprm <id> to remove your printing job from the
queue. The <id> is returned when you use the the command lpr
to print the file. If you don't have it handy then use the lpq
command to find out the <id>.
- Warning: Printing executable files (for example files with names
a.out or files with extensions .o or .a) is likely
to cause the printer to go berserk as these types of files contain
unprintable characters.
Next: Electronic mail
Up: Beginner's Guide
Previous: The GNU emacs file
Contents
Amit Jain
2009-08-23