The call is simply
ud typed in a terminal.
ud is defined as the following in my
alias ud='sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get clean -y'
After a quick search I found the following method suggested for maintaining log files (using
make install from the original post):
$ make install > file.txt 2>&1
Here is the problem; if I adapt this to my needs, I do not get the expected results out from the following syntax:
$ ud > file.txt 2>&1
What I get is that the command executes to on-screen stdout and a 0-byte text file is produced. What I wish to accomplish is create an output text file similar to the following for
$ ls > file.txt 2>&1
May I ask for someone to explain to me what is going on?
Finally, the following produce results I cannot explain:
$ $(ud) > file.txt La commande « Ign » est introuvable, vouliez-vous dire : La commande « tgn » du paquet « tgn » (universe) Ign : commande introuvable $ echo $(ud) > file.txt