replacement for rm?



Here is a general question...

Occasionally I've accidentally deleted files using rm and sometimes rm -rf in my home directory.

Has anyone ever thought of a "safe" rm that moves files into the users .Trash directory instead of actually deleting the file?


--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: replacement for rm?
    ... Subject: replacement for rm? ... Occasionally I've accidentally deleted files using rm and sometimes rm ... -rf in my home directory. ... .Trash directory instead of actually deleting the file? ...
    (RedHat)
  • Re: replacement for rm?
    ... Occasionally I've accidentally deleted files using rm and sometimes rm -rf ... in my home directory. ... Has anyone ever thought of a "safe" rm that moves files into the users ... but I think aliasing to rm -I would probably work for most cases. ...
    (RedHat)
  • Re: prevent user to delete files in its own directory
    ... > Alan D Johnson wrote: ... He wants to prevent the user from deleting the ... of the owner of the home directory for that shell. ... Lew Pitcher ...
    (comp.unix.misc)
  • Re: UFS permissions
    ... then that user can't be the owner of the file. ... > I want to restrict user from deleting file from HIS home directory. ...
    (comp.unix.solaris)
  • Re: Users cannot use multimedia
    ... Have you tried deleting these programs from your home directory? ... To delete root files open your file ... Monty Python's "Life Of Brian" ...
    (comp.os.linux.misc)