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 spawns a new subshell and doesn't get the >> /etc/apt/sources.list because it is owned by the parent shell which is you.
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.
lib/main.php:944: Notice: PageInfo: Cannot find action page