transfer root cmd output to user file

suggest 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.

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents