Free Disk Space in Linux: Complete Guide
In Linux, when you delete a file or directory, the disk space is not immediately freed up. Instead, they are moved to a special recycling bin called “Trash” or “Recycle Bin”. This is done to prevent users from accidentally deleting files that cannot be recovered. By default, the size limit of the trash bin is set to 2% of the file system space.
To completely delete files from the trash can and free up disk space, follow these steps:
- Open the Terminal application.
- Go to the directory ~/.local/share/Trash/files/
- show me a list
- Remove
- Delete example.txt.
- Only one option is provided for you in paraphrasing the sentence natively in English.
- Delete the directory called “example_dir” and all of its contents.
- Remove
- could you please tell me more about the issue?
- Delete example.txt file without prompting.
- go back to the previous directory
Please note that deleting files from the trash can is a permanent action and cannot be undone. Therefore, make sure you truly do not need these files before proceeding with the delete operation.