PDA

View Full Version : print screen



imiziq
04-02-2006, 06:20 PM
hi

how can i copy the certain scripts that appear on root console, paste it on appropriate word editor so that i can print it??

tq

OErjan
04-02-2006, 07:43 PM
mark the text and just go to the editor then you klick the mousewheel or both right and left buttons at same time, that pastes the marked text. easyer than in Windows.
or make the script produce a textfile of the output. like this.
ls /home/knoppix>lshome.txt
that wil list the files in knoppix homedir and the > will make the output go to a textfile called lshome.txt. did that answer your question?

maxIT
04-07-2006, 06:47 PM
...you klick the mousewheel or both right and left buttons at same time...
alias 'central button'... if present :)
A comfortable way could be the use of the 'script' command, which redirect all the shell output in a file at the same time of standard output.

OErjan
04-07-2006, 08:37 PM
same as tee?

maxIT
04-07-2006, 09:02 PM
Never used "tee", but according to what I can see with "whatis tee" it 'read from standard input and redirect it to standard output and file', while "script" redirect to a file all what appears on a shell session (input and output). Maybe "tee" can do what "script" do, but seems to me that tee is 'general pourpouse' while script is 'terminal specific'.