[EdLUG] Help
Ian Stuart
Ian.Stuart at ed.ac.uk
Tue Aug 25 05:48:07 UTC 2020
On 24/08/2020 12:46, Ian Stuart wrote:
> "df -h /home/*" will allow you to see when directory in /home is big...
> and you can drill down to see what's taking all the space
My bad....
"du -hs /home/*"
df : Disk Free
du : Disk Usage
-h : Human readable values
-s : Summery (total all subdirs)
eg:
~]$ sudo du -hs /var/*
0 /var/adm
264M /var/cache
0 /var/crash
114G /var/data
20K /var/db
0 /var/empty
0 /var/games
0 /var/gopher
0 /var/kerberos
1.4G /var/lib
0 /var/local
0 /var/lock
697M /var/log
0 /var/mail
0 /var/nis
9.2G /var/openebs
0 /var/opt
0 /var/preserve
0 /var/run
2.6M /var/spool
8.0K /var/tmp
0 /var/var
0 /var/yp
~]$
would indicate /var/data is where all my disk space has gone
--
Ian Stuart.
Perl & Python developer,
EDINA,
The University of Edinburgh.
🚙
http://edina.ac.uk/
The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
More information about the EdLUG
mailing list