Wednesday, September 05, 2007

Print a File in Landscape Mode via Command Line

I was asked how to print a file in landscape mode via the command line. I haven't done that in awhile, so I had to delve into my old notes. Here's the syntax.

# /usr/lib/lp/postscript/postprint -pland filename | lp

3 comments:

Shuva said...

I am missing the Unix command line for printing. Its been many years since I last used one of these commands.

esofthub said...

shuva, do you mean something like this?

# /usr/bin/lp -d filename

or

# lp (prints to default printer)
THIS IS A TEST PRINT
control d

Anonymous said...

I often use the 'lpr' command to print things.