Find Linux machine local drives, show their total, free and used % in GBs format:
[root@myhost ~]# df -k -h
Filesystem Size Used Avail Use% Mounted on
/dev/cciss/c9d9p2 63G 59G 672M 99% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
[root@myhost~]#
Find the largest file (s) that are consuming high disk space on your local drive in Linux:
[root@myhost ~]# find / -type f -ls | sort -k 7 -r -n | head -5
4026531862 0 -r——– 1 root root 9663676416 Jul 11 11:02 /proc/kcore
5701641 2099204 -rw-r–r– 1 oracle dba 2147483647 Jul 10 15:48 /tmp/launch.log
13206074 2059992 -rw-r–r– 1 oracle dba 2107367424 Nov 12 2010 /opt/oracle/full-mydc01-2012_11_13.dmp
8585217 2050008 -rw-r—– 1 oracle dba 2097156096 Jul 10 10:46 /opt/db1/oradata/myhost/testapp03.dbf
13991965 2050008 -rw-r—– 1 oracle dba 2097156096 Nov 15 2009 /opt/db1/oradata/myhost/empty/testapp02myhost.dbf
[root@myhost ~]#