teelinuxteeThe tee command reads from stdin and writes to both stdout and one or more files.df -h | tee disk_usage.txt ReferencesCommand-Line-A-modern-introduction