Running Complex Commands with sudo
Apr 03, 2009, 14:03 (1 Talkback[s])
(Other stories by Don Marti)
"This fails with “permission denied” because the
file is writable only by root:
$ echo 12000 > /proc/sys/vm/dirty_writeback_centisecs
"But, this fails too:
$ sudo echo 12000 >
/proc/sys/vm/dirty_writeback_centisecs
"Why?"
Complete Story
Related Stories:
- Exploring filters and pipes(Apr 02, 2009)
- Linux Barbies Battle the Command Line(Mar 28, 2009)
- GUI Programming in Python For Beginners: Create a Timer in 30 Minutes(Mar 27, 2009)
- Thunar File Browser: Tips, Tricks and Scripts(Mar 23, 2009)
- Command-Line-Fu, Because Knowledge is Power
(Mar 17, 2009)
- Intro to Shell Programming: Writing a Simple Web Gallery(Mar 13, 2009)
- The command-line phrasebook(Mar 06, 2009)
- 10 steps to UNIX nirvana(Mar 04, 2009)

