Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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..

share|improve this question

marked as duplicate by Eliah Kagan, Alaa Ali, Luis Alvarado Aug 4 '14 at 22:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I'm not sure I understand the question completely. Are you trying to save the output from the install process or the commands performed during the install (or both)? – bnjmn Oct 17 '13 at 5:21
You can see what you have been doing with the command history | less, is that what you want? – MadMike Oct 17 '13 at 5:32

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.

share|improve this answer

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.

share|improve this answer
Hai Jay, I take a LIGHTTP server then compile it giving the commands./configuration,make and etc.. when we type ./configuration , it displays something process by each and every command . I want copy that all information from the starting – Ayyappa Oct 17 '13 at 5:55
script -c "./configuration; make ; nextcommand " – Jay Oct 17 '13 at 5:58

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.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.