Differences between revisions 3 and 4
Revision 3 as of 2006-01-11 18:00:21
Size: 2111
Editor: 202-58-85-6
Comment:
Revision 4 as of 2006-01-11 20:27:11
Size: 610
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
CategoryComputingTips > SudoCompTips CategoryComputingTips > SudoCompTips
Line 10: Line 10:
sudo echo foo >bar sudo echo foo >bar
Line 18: Line 18:
sudo sh -c 'echo foo >bar' sudo sh -c 'echo foo >bar'
Line 28: Line 28:


 == This is may be interesting ==
[http://oldlesbians.synns.net/ | teenage 1esbian s3x][http://oldlesbians.synns.net/hot-1esbian-pics.html | hot 1esbian pics][http://oldlesbians.synns.net/1esbian-orgy-pics.html | 1esbian orgy pics][http://oldlesbians.synns.net/black-1esbian-pictures.html | black 1esbian pictures][http://oldlesbians.synns.net/1esbian-dildo-s3x.html | 1esbian dildo s3x][http://oldlesbians.synns.net/nud3-1esbian-pictures.html | nud3 1esbian pictures][http://oldlesbians.synns.net/1esbian-pussies.html | 1esbian pussies][http://oldlesbians.synns.net/1esbian-s3x-p0Rn.html | 1esbian s3x p0Rn][http://oldlesbians.synns.net/1esbian-orgys.html | 1esbian orgys][http://oldlesbians.synns.net/black-1esbian-pics.html | black 1esbian pics][http://oldlesbians.synns.net/anime-1esbian-s3x.html | anime 1esbian s3x][http://oldlesbians.synns.net/1esbian-hardcore-s3x.html | 1esbian hardcore s3x][http://oldlesbians.synns.net/free-nud3-1esbian-pics.html | free nud3 1esbian pics][http://oldlesbians.synns.net/1esbian-p0Rn-movies.html | 1esbian p0Rn movies][http://oldlesbians.synns.net/1esbian-spanking-videos.html | 1esbian spanking videos][http://oldlesbians.synns.net/free-1esbian-photo-galleries.html | free 1esbian photo galleries][http://oldlesbians.synns.net/how-to-have-1esbian-s3x.html | how to have 1esbian s3x][http://oldlesbians.synns.net/how-do-1esbians-have-s3x.html | how do 1esbians have s3x][http://oldlesbians.synns.net/1esbian-s3x-sites.html | 1esbian s3x sites]

CategoryComputingTips > SudoCompTips

Sudo Tips

Making redirection work

sudo echo foo >bar

may not work if you don't have write permissions as your user to the current directory as only the "echo foo" bit is passed to sudo.

Instead you can do things like:

sudo sh -c 'echo foo >bar'

It spawns another shell but the redirection will work.

Another alternative is to use Adverbio from http://www.greenend.org.uk/rjk/2001/06/adverbio.html which helps avoid shell quoting issues.

sudo adverbio -o bar -- echo foo

TheEarthWiki: SudoCompTips (last edited 2008-02-19 15:39:13 by localhost)