On Thu, 23 Mar 2006 16:03:08 -0500 JimD wrote: > I have been using Linux for a number of years and the one "trick" I > have never read how to do is something like: > > sudo echo "app-portage/porthole ~*" >> /etc/portage/package.keywords > > Another one I always wanted to know if it is possible is: > > sudo > /var/log/foo.log > > Both give me error message. Are either of these command possible? > > I used to always just use su, though now I like sudo better. I just > can't for the life of me get "sudo echo" or "sudo >" to work. I can > sudo su and then do the commands, however I am lazy and want to save > having to "exit" out from su. > > Jim
man i have been wanting to know the answer to that for ages, but have lived with it. the elevation of privilege does not seem to survive the redirection. I suspect you need to know more than I do about the way redirection is handled by the shell to explain it. > -- > gentoo-user@gentoo.org mailing list -- Nick Rout <[EMAIL PROTECTED]> -- gentoo-user@gentoo.org mailing list