Comments on Linux tee Command Explained for Beginners (6 Examples)
There are times when you want to manually track output of a command and also simultaneously make sure the output is being written to a file so that you can refer to it later. If you are looking for a Linux tool which can do this for you, you'll be glad to know there exists a command tee that's built for this purpose.
1 Comment(s)
Add comment
Comments
By: Pete
':w !sudo tee %' in vim asks for the password of the userid who has sudo permissions, not root.