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:

  1. How to Create Environment Variables in Linux

Tags:

2 Responses to “Checking Disk Capacity in Linux”

  1. yeah… “df” is a life safer in my server box :)

  2. My father sad so.
    Anyway, i’m not sure.

    cheers,
    ______________
    lonloali
    purchase soma online without prescription
    http://board.muse.mu/member.php?u=127208

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>