Start Free Trial
Come for the solution, stay for everything else.
Start Free Trial
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.
8/22/2022 - Mon
Please take a look at this:
This is for the gnome trash, I'm not sure where KDEs trash is located... But put this somewhere in your users ~/.bashrc:
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?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
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!
ASKER CERTIFIED SOLUTION
Log in or sign up to see answer
Become an EE member today
7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Plans and Pricing
Certified Expert Program
© 1996-2023 Experts Exchange, LLC. All rights reserved. Covered by US Patent