コマンドの結果をリダイレクトするが、書き込み先のw権限がない場合。
$ /usr/bin/sudo -c "echo 'su do' >> /usr/test"
To make a usage listing of the directories in the /home partition. Note that this runs the commands in a sub-shell to make the cd and file redirection work.
# sudo sh -c "cd /home ; du -s * | sort -rn > USAGE"