I want to save or copy the data which is displayed at the command prompt while compiling a process.
For example, if I want to install a tool like LIGHTTPD, I want to save whatever I do and see in the terminal to a file..
I want to save or copy the data which is displayed at the command prompt while compiling a process.
For example, if I want to install a tool like LIGHTTPD, I want to save whatever I do and see in the terminal to a file..
You can pipe the output to a file using the >
symbol:
install-command > file.txt
If you want to review the inputs (commands) that you made during the install, type history
to dump the contents of your history file.
Suppose you execute the command make to compile. To save the output seen on the terminal to a file, use the command script -c "make" . The output will be saved in a file called typescript.
If you're connecting to the system using a terminal emulator, it may have session logging. You can then enable that. When you open a new terminal to connect, (or select a bookmark,) you'll have a complete history of everything you do, every time. You may toss most of the connection logs, but this way you never have to remember to start logging.
history | less
, is that what you want? – MadMike Oct 17 '13 at 05:32