Search This Blog

Thursday 25 March 2010

Copy Xterm contents

Redirect the output of a command to a text file, as opposed to your screen.
Code:   
dmesg > /home/user/text.file   


And then, to add to an existing text file without overwriting, do:
Code:   
dmesg >> /home/user/text.file