by FfejL · 16y ago · 0 comments
I never just
sudo rm *
First, I do echo sudo rm *
inspect the output, and then use CLI editing to recall the command, and delete the "echo"I do this for damn near everything that involves a wildcard. It's a lifesaver.
and while i'm at it, "set noclobber" has saved me a few times from doing something like "grep file > someotherfile" when i meant to do "grep file >> someotherfile".