Managing Disk Space in Linux
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– […]
Read more