LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Command to print to terminal emulator's default printer (https://www.linuxquestions.org/questions/linux-newbie-8/command-to-print-to-terminal-emulators-default-printer-461959/)

daniel7713 07-07-2006 10:10 PM

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.

Tinkster 07-07-2006 10:52 PM

Hi,

And welcome to LQ!

Commonly:
lpr test.txt



Cheers,
Tink

daniel7713 07-08-2006 09:36 AM

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?


All times are GMT -5. The time now is 01:56 PM.