The ‘tee’ command allows you to monitor a command’s output in your shell (or piping that output to another program) while *also* writing it to a logfile. Now you can have your Linux cake and eat it, too!
Full Linux Sysadmin Course: https://www.youtube.com/playlist?list=PLtK75qxsQaMLZSo7KL-PmiRarU7hrpnwK
Check out my project-based Linux System Administration course (free sample videos): https://www.udemy.com/hands-on-linux-self-hosted-wordpress-for-linux-beginners/?couponCode=tl35
Official Site & e-mail list: https://tutorialinux.com/