Experts Exchange Solution brought to you by
"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.
du -s / | sort # (Disk usage, sorted) or
du -sh / | sort -h # more understandable numbers
Open in new window
du -s /var | sort #or
du -sh /var | sort -h
df # freespace
rm / mv # user remove or move to get rid of data, move it to another location
cp # Copy data to another location. all can work with -r to dive down.
Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.
# shell startup file
alias lsfs='pydf -ha | grep -P /dev/md | grep -v /var/lib/lxd'
/dev/md4 1804G 1111G 601G 61.6 [####..] /
/dev/md4 1804G 1111G 601G 61.6 [####..] /david-favor
find . -mount -mindepth 1 -maxdepth 1 -type d |
while read i
grep -E -q "on $(readlink -f "$i") " $T || du -sx "$i"
done | sort -n
From novice to tech pro — start learning today.
Members can enroll in this course at no extra cost.