Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Linux Newbie egan's Avatar
    Join Date
    Feb 2009
    Location
    Mountain View, CA
    Posts
    132
    Perhaps you can alias rm as:
    rm -i
    That way you can check each file.

  3. #3
    Just 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...