← back to all posts

Unix command of the day: Tee

blog

The tee command allow you to write to a file and still display the result in output.

For exemple

ls

display the content of the current folder in stdout (the terminal)

ls > file.txt

saves that in a file file.txt

ls | tee file.txt

saves that in a file file.txt and displays in stdout at the same time

suggested reads:
→ Sed and Awk tutorials • blog
→ To_print • blog
→ Vim cheatsheets • blog
← back to all posts blog • 2015-04-03

recent posts

elsewhere

book Real-World Cryptography Applied cryptography, from Manning. podcast Two And A Half Coins Crypto, banking & distributed systems. youtube Cryptography videos Concepts & security, explained.