Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

When I do yaourt -Syu sometimes there is such a long log in the console so that the buffer gets full and some information is lost. As the information is important sometimes I´d like to save everything that´s logged by yaourt/pacman in a file.

Doing yaourt -Syu > file does save things to file, but then you cannot see what´s going on in the console. Is it possible to have both?

share|improve this question
up vote 3 down vote accepted

Yes, pipe it to tee

From the tee man page:

   tee - read from standard input and write to standard output and files

   tee [OPTION]... [FILE]...

   Copy standard input to each FILE, and also to standard output.

So your command should be yaourt -Syu | tee yaourt.log

share|improve this answer
Ahh, perfect, thanks. – user905686 Jan 23 '12 at 10:47

I am normally most interested about what ultimately is installed so I just look at the pacman log located at /var/log/pacman.log. All pacman output is there so you can see if there were any errors or important warnings.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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