In this exercise you will practice your knowledge about I/O redirection. More information on this topic can be found in chapters 5 and 8 of the reference book.
Write the word COMPUTEREXERCISES to the file exercise2_1.txt.
Write the content from nevermind_nirvana.txt1, thecolourandtheshape_foofighters.txt2, stadiumarcadium_rhcp.txt3 to the file exercise2_1.txt, without overwriting the existing content of the latter file. Possible error messages should be written to the file log.err.
Write the output together with any possible error messages generated by the command whoami to the file memyselfandi. What information is produced by this command, and how do you think this command could ever be useful?
Execute the following command:
$ sort x 2> memyselfandi
Execute the following command:
$ sort < x 2> memyselfandi
Execute the following command:
$ < x 2> memyselfandi sort
Download the file course1.txt4 using the wget command and make sure that any unnecessary output generated by the command is immediately written to the trash bin (or in other words, this output should not never be written to the screen or to a file).