transfer root cmd output to user filesuggest change
Often one want to show the result of a command executed by root to other users. The tee command allows easily to write a file with user perms from a command running as root:
su -c ifconfig | tee ~/results-of-ifconfig.txt
Only ifconfig runs as root.
Table Of Contents