Linux clears disk space

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.