Quickly surveying free disk space on UNIX and Linux
Published on 21st June 2008 Estimated Reading Time: 1 minuteKeeping an eye on disk space on a Solaris server is important for me at work, while keeping the same top level overview is good for my use of Linux at home too. Luckily, there's a simple command that delivers the goods:
df -h 2>/dev/null
The df -h
piece is what delivers the statistics while the 2> /dev/null
rids the terminal of any error messages; ones stating that access has been denied are common and can cloud the picture.