Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-29-2006, 10:42 PM   #1
LQ Newbie
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
Printing 2 pages in 1 page paper in (Redhat) Linux using command line

Hi All,

Would like to know the equivalent linux command line for the unix (HP-unix) command below:

$ lp -o2
- this command prints a 2page file to 1 paper only. I'll need this to save papers when printing.

Appreciate any help here. Thanks!
Old 01-30-2006, 03:47 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,891

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
Is that duplex printing (page 1 on the front; page 2 on the back) or two pages on one side of the paper?
Old 01-31-2006, 02:02 AM   #3
LQ Newbie
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
its two pages on one side of the paper...
Old 01-31-2006, 08:29 AM   #4
LQ Newbie
Registered: Jan 2006
Posts: 5

Rep: Reputation: 0
The -o number-up option places multiple documents pages on a single printed page. CUPS supports 1,2,4,6,9, and 16-Up formats.

lp -o number-up=X file

Print all 16 pages of file "myfile.txt" on one page:

lp -o number-up=16 myfile.txt

To tell the printer how many pages you want on one page, you can replace the X with 1,2,4,6,9, or 16.
Old 02-01-2006, 03:06 AM   #5
LQ Newbie
Registered: Jan 2006
Posts: 3

Original Poster
Rep: Reputation: 0
thanks a lot Hunter! It worked....
Old 02-01-2006, 03:13 AM   #6
Registered: Apr 2004
Distribution: Arch, Debian and FreeBSD
Posts: 243

Rep: Reputation: 30
Hi, you can also use psnup to do this. Here is a way to make booklets (which is really handy):

Printing booklets with the psutils package:

psbook = Rearrange the pages into a signature

psnup -2 > = Put two pages on 1 page in landscape orientation

pstops "2:0(1in,0in)" > = Output the odd pages

pstops "2:-1(1in,0in)" > = Output the even pages

Then print the odd pages, when finished turn the pages around and put them again in the printer and print the even pages.

You can also just use gv (instead of pstops) to show a preview of the ps file and then select the odd pages and print them and then the even pages.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apt, Synaptic command line installation...I can't find the page anymore :( leonardh Linux - Software 3 02-03-2005 04:53 PM
command line printing rb3ng Linux - Newbie 3 04-22-2004 12:35 PM
Redhat 9, apache + frontpage not serving pages except admin page JRinOKC Linux - Newbie 5 01-12-2004 02:58 AM
Command line printing? HappyDude Linux - Software 2 10-25-2003 01:00 PM
Printing error from command line nutshell Linux - General 0 03-02-2002 04:39 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration