Results 1 to 3 of 3
I am looking for a way to make it so that if there is a * anywhere in a rm command, that rm will error out.
I am root, so ...
- 06-15-2009 #1Just Joined!
- Join Date
- Mar 2009
- Posts
- 4
How to edit rm command
I am looking for a way to make it so that if there is a * anywhere in a rm command, that rm will error out.
I am root, so permissions wont work, sometimes I get lazy, and I forget about files. Any help is awesome
using newest ubuntu on a Amazon EC2
- 06-15-2009 #2
Perhaps you can alias rm as:
rm -i
That way you can check each file.
- 06-15-2009 #3Just Joined!
- Join Date
- Mar 2009
- Posts
- 4
Awesome ideal.
For those who come here, here is a link that helped me do the above (and some other cool stuff) (remove spaces)
h t t p : // ubuntuforums . org / showthread.php?t=204382


Reply With Quote