LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-07-2006, 10:10 PM   #1
daniel7713
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Rep: Reputation: 0
Command to print to terminal emulator's default printer


Is there any command to print the file to terminal emulator's default printer?

I tried "cat test.txt > /dev/tty", but it just show the content of test.txt on the screen instead of printing to the default printer.

Pls help. Thanks.
 
Old 07-07-2006, 10:52 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi,

And welcome to LQ!

Commonly:
lpr test.txt



Cheers,
Tink
 
Old 07-08-2006, 09:36 AM   #3
daniel7713
LQ Newbie
 
Registered: Jul 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Tinkster
Hi,

And welcome to LQ!

Commonly:
lpr test.txt



Cheers,
Tink
I know this command can print to the printer setup in Linux.
But, this command will print the file to the default printer of terminal emulator in client side?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LPR command doesn't print on USB printer johnhome Linux - Hardware 2 05-03-2009 03:49 AM
Print jobs repeat infinetly on lpd printer attached to axis print server linux-who? Linux - Hardware 0 03-28-2006 11:24 AM
start print server and printer by default caulfiek SUSE / openSUSE 2 10-23-2005 02:09 PM
Change default printer using command BroX Slackware 6 08-18-2005 08:52 AM
Setting default printer from command line mihailolja Linux - Newbie 1 03-19-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:25 PM.

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