NCDU is a software which display the list of directories and their respective volumes. It is very practical to visualize at a glance what consumes space.
To install it :
Then directly :
The software browses all the directories and sub-directories of the current directory (you can also do "ncdu /" to do it from the whole disk) then will display the result of its analysis, in decreasing size. You can browse the directories to find those that you think are too large.
To display modification dates, run ncdu with the "-e" argument, then in the tree structure, press the m key to toggle the display.
GDU is a clone of NCDU. To install it:
curl -L https://github.com/dundee/gdu/releases/latest/download/gdu_linux_amd64.tgz | tar xz
chmod +x gdu_linux_amd64
sudo mv gdu_linux_amd64 /usr/bin/gdu
From the current directory and its sub-directories:
From the current directory and its sub-directories:
To clear the cache of stale packages, clear the entire cache, fix broken dependencies, and remove packages installed as dependencies and no longer needed in one command:
Modifiez le fichier de configuration du journal :
And activate the following line:
If you use the MySQL DBMS, by default it creates a lot of log files. Try to clean them with this article : Avoid too large MySQL logs.
Show disk cache size:
Delete files older than 6 months:
RSS | Informations |