Differences between version 6 and previous revision of IORedirectionNotes.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 6 | Last edited on Monday, December 11, 2006 8:47:45 pm | by BenStaz | Revert |
Older page: | version 5 | Last edited on Monday, December 11, 2006 8:46:29 pm | by BenStaz | Revert |
@@ -5,9 +5,9 @@
Firstly:
*sudo echo "#TEST REPOSITORY" >> /etc/apt/sources.list
-Results in a "Permission denied error". This is because anything after the IO redirection characters, is inside a new subshell which is executed as you and not root. ie: sudo only applies to the echo command.
+Results in a "Permission denied error". This is because anything after the IO redirection characters (''>>'')
, is inside a new subshell which is executed as you and not root. ie: sudo only applies to the echo command.
Ways around this:
1)