Linux systems share files at home is large, but did not see a lot of files, no space solutions

Problem Description:

Initially partition, /homethe partition is 250G, only found a plurality of spaces 10 G, however, after using a period of time du -h –-max-depth=0 *to check /homethe use of the document, found to be effective occupy only about 100G.
It is suspected due to improper manner previously deleted files, right-delete junk files cause has not been cleared up, in essence, to continue to use temporary space.

Solution

cd~/.local/share/Trash/filesTo the corresponding storage of trash until the
du -shquery with the size of the space temporarily, 125G, clear reason (delete inappropriate way)
sudo rm -rf *to delete the file
sudo rm -rf .*delete hidden files,
du -shquery again, 904 k
df -hquery, display using 99G, the remaining 154G, the problem is solved.

Revelation

  1. Using the right mouse button to delete , does not really delete files, but moved to /homethe folder to save, delete the file the next time, the use of rm -rfmethods to completely remove.
  2. Start using the linuxsystem, we must get accustomed to the command line, although difficult, to get accustomed to. Including vimbasic commands.
Published 36 original articles · won praise 0 · views 20000 +

Guess you like

Origin blog.csdn.net/weixin_38102912/article/details/104972817