LinuxQuestions.org
Visit Jeremy's Blog.
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 04-24-2004, 05:42 PM   #1
glenn69
Member
 
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261

Rep: Reputation: 32
Question How do i print a terminal screen?


If i run a command in terminal on RH9 (Shell - Konsole)

Is there a command i can type to print the output (a pipe or something)

Thanks
 
Old 04-24-2004, 09:58 PM   #2
|2ainman
Member
 
Registered: Mar 2004
Distribution: Slackware current, DSL 0.9.2
Posts: 133

Rep: Reputation: 15
yes, you can pipe it to lpr (line printer) or something like that
example
Code:
ls | lpr
will print out the current directory's contents
Be careful though, because the way you see it on the screen wont necessarily be the way it prints out. When i tried it out, it printed 1 column instead of the three that showed up in terminal.
I'm not sure if you want to print out stuff thats already appeared on the screen, cuz im not sure how to do that, but u could always take ur mouse highlight the portion, then move into a text editor and click ur middle mouse button, then just print from that app.
 
Old 02-26-2012, 04:04 PM   #3
qkzoo
LQ Newbie
 
Registered: Jan 2012
Distribution: Lubuntu & Debian Squeeze
Posts: 6

Rep: Reputation: Disabled
I know it's an old thread, but it still works great!

Example of what I needed it do, and it actually working, after reading this thread:

Code:
php gs.php | lpr
All "screen" output for the script gs.php goes directly to the printer.

Very cool, thanks!

Q
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
print the terminal saosurya Red Hat 1 09-11-2005 10:54 PM
sheel scripting (open new terminal and print in it) chunlee Linux - Newbie 2 10-15-2004 01:33 PM
can print from xpdf and terminal, not browser degraffenried13 Linux - General 3 08-29-2004 03:07 PM
I mam Not able to delete print queues,maybe from a terminal? deimos Linux - Newbie 1 08-05-2003 02:31 AM
Print Screen Artamir Linux - Newbie 2 11-27-2001 03:14 PM


All times are GMT -5. The time now is 12:32 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration