hrolsons
asked on
Is there a recycle bin in Linux?
I was having some "space issues" on my server so I deleted a bunch of stuff, and it didn't seem to free up my available space?
I'm running FreeBSD.
I'm running FreeBSD.
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'
Now, if rm a file or directory as that user, it should go to trash instead of permanent deletion.
--- Beware that you have to re-login first for this to take effect! ---
Code:
alias rm='mv --target-directory ~/.Trash'
Now, if rm a file or directory as that user, it should go to trash instead of permanent deletion.
--- Beware that you have to re-login first for this to take effect! ---
Recycle bins will only be found in GUI enhanced Linux, and they only apply to files you deleted using the graphical interface in some way.
They do not apply to deletions via the 'rm' command on the CLI.
If you run a server, chances are it is CLI only, so you would have to check elsewhere for the space that is not freed.
Mabe you deleted links to files, not the files themselves?
They do not apply to deletions via the 'rm' command on the CLI.
If you run a server, chances are it is CLI only, so you would have to check elsewhere for the space that is not freed.
Mabe you deleted links to files, not the files themselves?
Where do you have "space issues", and what did you delete?
Please keep in mind that "available space" is a filesystem property, so deleting files in one FS will only free up space in that FS and nowhere else.
Check with "df" for filesystems and space parameters!
Further, deleting a file which is held open by some process will not yield free space until the process holding the concerned file handle ends!
wmp
Please keep in mind that "available space" is a filesystem property, so deleting files in one FS will only free up space in that FS and nowhere else.
Check with "df" for filesystems and space parameters!
Further, deleting a file which is held open by some process will not yield free space until the process holding the concerned file handle ends!
wmp
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.go2linux.org/linux-trash-can-recycle-bin-console
jppinto