DEV Community

Discussion on: What Are Your Favorite Command Line Hidden Gems?

Collapse
 
wrldwzrd89 profile image
Eric Ahnell

My favorite command I often forget about is tee - used for simultaneously writing to the terminal AND to a file. It works best as part of a pipeline, which makes it a good fit for any shell supporting them - pretty much all the modern shells do now. I like to use this for verification: Did what my shell script print out match what I expect it to?