Alternative to the tee command whitout STDOUT

Posted by aef on Super User See other posts from Super User or by aef
Published on 2012-11-11T23:02:16Z Indexed on 2012/11/11 23:03 UTC
Read the original article Hit count: 253

Filed under:
|
|
|
|

I'm using | sudo tee FILENAME to be able to write or append to a file for which superuser permissions are required quite often.

Although I understand why it is helpful in some situation, that tee also sends its input to STDOUT again, I never ever actually used that part of tee for anything useful. In most situations, this feature only causes my screen to be filled with unwanted jitter, if I don't go the extra step and manually silence it with tee 1> /dev/null.

My question: Is there is a command arround, which does exactly the same thing as tee, but does by default not output anything to STDOUT?

© Super User or respective owner

Related posts about linux

Related posts about command-line