Results 1 to 4 of 4
I want to know how recycle bin work?!
um..mm if I use rm command to delete some files and I also need my deleted files go through recycle bin ... ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 04-18-2006 #1Just Joined!
- Join Date
- Mar 2006
- Posts
- 9
about "rm" command and recycle bin
I want to know how recycle bin work?!
um..mm if I use rm command to delete some files and I also need my deleted files go through recycle bin ... ,impossible huh !?!
- 04-18-2006 #2
recycle bin is just for when you press DEL in your file manager, rm is to permenantly remove it like you found. I don't think there is any way to tell rm to send stuff to a "recycle bin" of sorts.
Life is complex, it has a real part and an imaginary part.
- 04-18-2006 #3Just Joined!
- Join Date
- Jul 2005
- Posts
- 60
if you want a "recycle bin" you could do
$ mkdir /trash
then use
$ mv /stuff/to/delete /trash/
rm is for permenant deletion
you may want to read the Debian (or the many other) user guides to become familiar w/ all the beauty contained within linux
- 04-22-2006 #4Linux Engineer
- Join Date
- Mar 2005
- Posts
- 1,431
This is for the gnome trash, I'm not sure where KDEs trash is located... But put this somewhere in your users ~/.bashrc:
If you now rm a file or directory as that user, it should go to trash. Beware that you have to re-login first!Code:alias rm='mv --target-directory ~/.Trash'


Reply With Quote
