transfer root cmd output to user file
suggest changeOften 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.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents