PDA

View Full Version : how to write from the terminal into a file?



adhg
August 22nd, 2007, 03:19 AM
Hi there,
not sure this is the write place to ask this question, but...I would like to know how to 'export' or 'write into a file' all the text that I have in my terminal.

to be more precise, I wish to write all the 'history' on my terminal into a file.

thank you
Adriana

nrs
August 22nd, 2007, 03:22 AM
All the history, as in which commands you've typed? Already there; .bash_history

All the history, as in the output of a program?; whateverprogram > whateverfile

adhg
August 22nd, 2007, 03:55 AM
Bingo!
thank you.