I\'ve been given sudo access on one of our development RedHat linux boxes, and I seem to find myself quite often needing to redirect output to a location I don\'t normally h
How about writing a script?
Filename: myscript
#!/bin/sh /bin/ls -lah /root > /root/test.out # end script
Then use sudo to run the script:
sudo ./myscript