Linux Forums  
Register FAQ Members List Downloads Calendar Today's Posts
 
Welcome to Linux Forums! In order to post new messages, you'll need a new account. Create your Free Account Here

Go Back   Linux Forums > GNU Linux Zone > Misc
User Name
Password Register

Misc Any questions or Linux discussion that does not fit in any of the other technical areas.


Reply
 
LinkBack Thread Tools Display Modes
Old 04-18-2006   #1 (permalink)
Just 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 !?!
deboom is offline   Reply With Quote
Old 04-18-2006   #2 (permalink)
Content Team
 
AlexK's Avatar
 
Join Date: Feb 2005
Location: Earth
Distribution: Gentoo
Posts: 3,381
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.
AlexK is offline   Reply With Quote
Old 04-18-2006   #3 (permalink)
Just 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
d0p is offline   Reply With Quote
Old 04-22-2006   #4 (permalink)
Linux 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:
Code:
alias rm='mv --target-directory ~/.Trash'
If you now rm a file or directory as that user, it should go to trash. Beware that you have to re-login first!
jaboua is offline   Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Sponsors
Linux Forums

Downlads Directory

Web Hosting

Web Hosting

Web Hosting Providers

Become a Sponsor



All times are GMT. The time now is 12:41 AM.

SiteMap: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18
19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32

Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2007, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0
Property of Core Root