[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /usr 100%



Le 25/08/2019 à 10:06, Hadi Motamedi a écrit :
On 8/25/19, der.hans <deb-user@lufthans.com> wrote:

du -sh /usr/*

That will show you disk usage per directory in /usr/.

My preferred command is

du -hxd1 /usr | sort -h

- ignores other filesystem (e.g. if you mounted something on /usr/local)
- does not ignore "dot" files and directories
- sorts by size for easier reading

with "du -sh" , I am able to find big files and try to remove them .

Be aware that /usr contains mostly files belonging to installed packages, so you should not remove such files by hand, but remove unnecessary packages instead. Exceptions are /usr/local and possibly /usr/src (although the latter should not be used for local compilation) as the whole /usr should be considered read-only.


Reply to: