Linux clears disk space
My environment:
Computer Model: Thinkpad x240
Operating System: Ubuntu14.04
Kernel version: 3.20.- 46-generic
The command for viewing the remaining space on this disk is df-h.
'
/Dev/sda1 is the physical hard disk of my computer. The total size is 114 GB, 56 GB in use, and the remaining 52 GB space. After I delete a 4G folder in the file manager, I found that my available space was not reduced. Later I found that all the folders you deleted in the File Manager were saved in the recycle bin again. The saved path is ~ /. Local/share/Trash/files, overwrite and delete the 4G folder using the command rm-rf, and then release the disk space. The remaining available space is 56 GB.
PS: the recycle bin directory of some systems is ~ /. Trash ~ /. Local/share/Trash/files
Deleting a file by pressing Delete in the File Manager of the graphic interface does not release the disk space, but moves the file to the recycle bin folder. If you use the rm-rf command to Delete the file or folder on the command terminal, the space will be released.