Back to Browse

Tee Command in Linux - with examples

14.1K views
Mar 26, 2019
3:12

Tee Command in Linux - with examples So the tee command line utility allows you to spur off from your current command pipeline at a given point and write to a file, while allowing you to continue with your pipeline. Some common uses for tee include downloading files and computing hashes, while the file is downloading. So you can confirm against a provided hash that the file wasn't corrupted during download. Another common use for tee is to watch the output of your command pipeline while you are also saving the output to a file for later reference. Watching logs is like clock watching, sometimes you just need a summary of the data in your pipeline once it completes doing whatever it is doing. You can use tee for this too. So at the end of your pipeline if you pipe into tee you can save the output for later reference and pipe on to some other utilities to calculate a summary, like count the number of lines processed etc. Subscribe: https://www.youtube.com/user/linuxleech?sub_confirmation=1 Blog: http://www.linuxleech.com Twitter: http://www.twitter.com/linuxleech Facebook: http://www.facebook.com/linuxleech Google+: http://www.gplus.to/linuxleech

Download

1 formats

Video Formats

360pmp45.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Tee Command in Linux - with examples | NatokHD