[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to keep output of apt-get in a file ?



You could use tail -f in a different window:

xterm #1> apt-get upgrade >output.txt 2>&1
xterm #2> tail -f output.txt

or maybe in the same window by backgrounding the first.

Or, you could use tee:

  apt-get upgrade 2>&1 | tee output.txt | tee

Kirk


Khalid EZZARAOUI wrote:
> 
> thanks.
> 
> I try what you say, but I would like to see the output in the same time (during the
> upgrade) in my terminal that it is save in the file.
> 
> --
> Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null


Reply to: