Date: 2007-03-08 08:13 pm (UTC)
I will pass on a secret that I learned several years ago to help prevent the dreaded accidental rm * (though it would not have helped with the /* portion of */*)

Create a file in your home directory named --oops. Under bash this seems to work:

$ touch -- --oops

The glob in rm * sees the file as an argument, and an illegal one at that, and refuses to go on.
$ rm -f *
rm: illegal option -- -
usage: rm [-f | -i] [-dPRrvW] file ...
       unlink file

It at least helps with the rm -f * .txt type accident.
(will be screened)
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

Profile

pyesetz: (Default)
Pyesetz/Песец

August 2025

S M T W T F S
      12
3456789
1011 1213141516
17181920212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 18th, 2026 12:33 pm
Powered by Dreamwidth Studios