I'm curious how to take the output from the console during a download and pipe it into a new file so I can view it later. That way I can download something, leave, and review that .log file to see if everything went okay.
For example:
sudo apt-get install htop | <magic code here > htopInstall.log
It should say Returning htopInstall.log : command not found
Here is the proper sequence:
$ pwd
/home/cotton/InstallLogs
$ ls
htopInstall.log
$ sudo apt-get install htop | htopInstall.log
htopInstall.log: command not found
$sudo apt-get install htop | ~/htopInstall.log
bash: /home/cotton/InstallLogs/htopInstall.log: Permission denied E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/cache/apt/archives/
$ sudo apt-get install htop | tee htopInstall.log [installs program] ... The following NEW packages will be installed: htop 0 upgraded, 1 newly installed, 0 to remove and 13 not upgraded. E: Could not get lock /var/cache/apt/archives/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/cache/apt/archives/