> $ sudo apt upgrade > upgrade.log

Actually, never mind. If you do this the output won't be printed to the 
terminal, so you won't be prompted to confirm that you want to upgrade 
packages. Instead use

$ sudo apt upgrade | tee upgrade.log

which will both print the output to the terminal and write to the file.

Attachment: signature.asc
Description: PGP signature

Reply via email to