Link to home
Start Free TrialLog in
Avatar of hrolsons
hrolsonsFlag for United States of America

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.
Avatar of jppinto
jppinto
Flag of Portugal image

Avatar of ragnarok89
ragnarok89

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! ---
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?
Avatar of woolmilkporc
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
 
ASKER CERTIFIED SOLUTION
Avatar of mccracky
mccracky
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial