Here you can search and view our site Knowledge Base.
To find a specific article, use KB-article number format (ex. KB-1)

Article number: Article number: kb-39
Q. In CentOS, how to find free disk space?

A. Try this for "diskfree":

# df -h

df options:
-a: show all file system disk usage
-k: display output in K bytes
-i: display inode infomation
-t: Display disk space usage for each of the specified type of File system
-T: display file system type

# du -c

du options:
-a: write counts for all files, not just directories
-s: display only a total for each argument
-b: display output in bytes( the default is K)
-k: display output in K bytes
-c: produce a grand total
-l: count sizes many times if hard linked

# fdisk -l

This page has been viewed 598 times

Other questions in this category Other questions in this category
1. How do I disable/stop firewall in Linux server? (viewed 735 times)
2. How to find CentOS memory usage? (viewed 675 times)
3. How to Eject/Close CD or DVD media with shell command? (viewed 664 times)
4. How Do I Find Out My Linux Gateway / Router IP Address? (viewed 614 times)
5. How Shutting Down and Reboot CentOS via SSH? (viewed 603 times)
6. How to work with ping command? (viewed 595 times)

Return to Search

Back to Top