i'm not talking about printing any file, i'm talking about the exact file that get printed when you press the button
"Print Test Page"
Main Topics
Browse All Topicshi guys,
please, can you show me how to print a test page from command line.
i mean instead of pressing "Print Test Page" button in printer configuration GUI, i want to print the same thing using the terminal.
i'm using RHEL 5.
big thx guys.
This question is in progress.
Our experts are working on an answer right now.
Sign up for immediate access to the solution once it becomes available.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
This is an old one but I think I was able to use some information here and solve my issue, so here you go...
Once the printer is configured, you can manually send a print job to the printer using the lpr command.
The testprint file, like noci said, was in /usr/share/cups/data/ but mine did not have the .ps extension (Ubuntu distribution), never the less I was able to send a print test from my machine using the following command:
lpr -P <printer_name> /usr/share/cups/data/testp
It is important to note that not all the lpr's are identical as the website which listed the initial command has a -d <printer_name> instead of a -P, run a 'man lpr' to verify what your binary uses.
Source: http://articles.techrepubl
Business Accounts
Answer for Membership
by: efg-uaePosted on 2009-06-30 at 22:55:24ID: 24751790
Hi
you can do it with following command
lp < filename.txt
Please make sure that you have setup the printer in linux
Thanks