TEE Commands Cheat Sheet

Here is a cli commands cheat sheet for TEE command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.

What is TEE command?

Add some data here

        # To tee stdout to :
ls | tee 

# To tee stdout and append to :
ls | tee -a 

# To tee stdout to the terminal, and also pipe it into another program for further processing:
ls | tee /dev/tty | xargs printf "\033[1;34m%s\033[m\n"

Check out the TEE command documentation .

You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again

Check Also