In my work, I should be familiar with linux server. Because it uses CLI (Command Line Interface), then it’s a bit difficult to use. One of my problems is how to check disk capacity. Previously, my friend had told me, but I forget it :(. In order not to forget it, I will share it in my blog. So, if I forget it, I only need to open my blog.. :)
Command to check disk capacity is df. Short description: df – report filesystem disk space usage. Use man df to get more information.
Usage example:
$ df Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda1 14877092 9090552 5018636 65% / /dev/shm 1037556 0 1037556 0% /dev/shm /dev/sdb1 68890968 24462748 40872236 38% /home /dev/sda5 14877060 6418492 7690664 46% /var
Oops, it’s not clear enough. To make it clear, add -h parameter.
$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 15G 8.7G 4.8G 65% / /dev/shm 1014M 0 1014M 0% /dev/shm /dev/sdb1 66G 24G 39G 38% /home /dev/sda5 15G 6.2G 7.4G 46% /var
Hmm… it’s better, isn’t it?
Related posts:
Tags: Linux








April 18th, 2009 at 6:22 pm
yeah… “df” is a life safer in my server box :)
October 30th, 2009 at 2:56 am
My father sad so.
Anyway, i’m not sure.
cheers,
______________
lonloali
purchase soma online without prescription
http://board.muse.mu/member.php?u=127208