In this short article, I will show you a simple but useful command-line trick: how to view output of a command on the screen and also write to a file in Linux.