In this example I will use the sources.list file that contains a list of the repositories from which we can get packages.
Firstly:
Results in a "Permission denied error". This is because sudo ONLY applies to the echo command and nothing else. Ways around this:
1)
Commands are read from string after the -c switch.
2)
The 'tee' command reads from standard input and the -a switch appends it to the file.
3)
No page links to IORedirectionNotes.