UNIX lets you do everything any other operating system does, and that includes printing files and documents. The following table shows you how to print whether you’re on a System V UNIX or using Linux or BSD UNIX.

To Do This Type This on System V UNIX Type This on Linux or BSD UNIX
Print file lp textfile lpr textfile
Print file on a named printer lp -dprinter textfile lpr -P printer textfile
Cancel a print job cancel requestid lprm jobnumber
Check the printer queue lpstat -a all lpq -a

NetBSD, FreeBSD, OpenBSD, and BSD/OS are all BSD. Solaris 1, OSF/1, and AIX are similar to BSD. Solaris 2 is similar to System V. Your UNIX shell: Bourne Shell, C Shell, Korn Shell, and BASH Shell.