DEV Community

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

Collapse
 
io_io_rocks profile image
io • Edited

I am on Linux since 2005 and here's one of the most often used things:
I do CTRL + R to get the reverse CLI history, then I just type the first characters from: find . -type f -name ".*.sw*" -exec rm -f {} \;, find it then hit Enter.
It finds all the .swp, swo, etc files left from my vim sessions and deletes them.
Also, big lol @ npm install kitchen-sink-robot-suit :-))
That name surely needs a package!

Collapse
 
fcfn profile image
Peter Timoshevsky

You can also use the specific -delete action with find.

Collapse
 
io_io_rocks profile image
io

Good to know, thank you!