mreff555 |
10-31-2015 05:22 PM |
Strange sudo limitation. Why?
Lets say I feel like reducing my screen brightness. However, rather than the laborious task of taking my fingers off the home row and pressing a button, I would rather type a sentence like this.
Code:
sudo echo 8 < /sys/class/i2c-adaptor/i2c-7/device/backlight/acpi_video0/brightness
actually, this doesn't work. It should, but I get a permission denied. However
Code:
su
echo 8 < /sys/class/i2c-adaptor/i2c-7/device/backlight/acpi_video0/brightness
exit
if I invoke su rather than sudo it works.
typing a complicated sentence isn't a problem but those extra 6 characters and carrige returns are killing me. What gives?? :banghead:
|