2 ms·
"I learned that whenever you do anything you should: find . -name "*.whatever you want" | more" Many years ago at one company, our servers had a shared root lo
by donretag 11y ago
"I learned that whenever you do anything you should:
find . -name "*.whatever you want" | more"
Many years ago at one company, our servers had a shared root login, no individual accounts (hey, I'm a dev, not ops).
I was executing 'find' commands and I decided to use !find to re-execute my last find. Problem was, with a shared account, was that the history was also shared. Turns out the last find command was something like "find . ... -exec rm {} \;". It deleted most of the content from the content directory of our CMS.
Backups restored the content, and I never used the ! operator again. Nowadays I use ^r instead so that I can view what I am about to execute.