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

[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]