Logo Background

Unix Mount Point Usage Command

  • By on May 8, 2009 | No Comments

    Disk free, df unix command reports how much free disk space is available for each mount point you have in Unix platform.

    Most of the HP Unix guys love bdf as the reporting tools of mount point and filesystem disk usage. Linux guys doesn’t have the luxury of the bdf command and they will rely on the df command to check on the disk space usage.

    Just a simple df command will report how much free disk space is available for each mount point and filesystem on your Unix platform

    Unix Disk Free df Command

    UNIX> df
    Filesystem           1K-blocks      Used Available Use% Mounted on
    rootfs               140038192  43287528  94653512  32% /
    fakefs               140038192  43287528  94653512  32% /root
    fakefs               720911148 623758980  95055016  87% /oracle
    fakefs                  507748    139636    368112  28% /database
    fakefs                  507748    139636    368112  28% /applications
    fakefs               140038192  43287528  94653512  32% /tmp
    fakefs               140038192  43287528  94653512  32% /temp
    fakefs               140038192  43287528  94653512  32% /log
    fakefs               140038192  43287528  94653512  32% /core
    fakefs               140038192  43287528  94653512  32% /opt
    fakefs               140038192  43287528  94653512  32% /script
    UNIX> df -h
    Filesystem            Size  Used Avail Use% Mounted on
    rootfs                134G   42G   91G  32% /
    fakefs                134G   42G   91G  32% /root
    fakefs                688G  595G   91G  87% /oracle
    fakefs                496M  137M  360M  28% /database
    fakefs                496M  137M  360M  28% /applications
    fakefs                134G   42G   91G  32% /tmp
    fakefs                134G   42G   91G  32% /temp
    fakefs                134G   42G   91G  32% /log
    fakefs                134G   42G   91G  32% /core
    fakefs                134G   42G   91G  32% /opt
    fakefs                134G   42G   91G  32% /script
    OPTIONS
     
    Show information about the filesystem on which each FILE resides, or all 
    filesystems by default.
     
    Mandatory arguments to long options are mandatory for short options too.
     
    -a, --all
        include filesystems having 0 blocks 
    -B, --block-size=SIZE use SIZE-byte blocks
    -h, --human-readable
        print sizes in human readable format (e.g., 1K 234M 2G) 
    -H, --si
        likewise, but use powers of 1000 not 1024 
    -i, --inodes
        list inode information instead of block usage 
    -k
        like --block-size=1K 
    -l, --local
        limit listing to local filesystems 
    --no-sync
        do not invoke sync before getting usage info (default) 
    -P, --portability
        use the POSIX output format 
    --sync
        invoke sync before getting usage info 
    -t, --type=TYPE
        limit listing to filesystems of type TYPE 
    -T, --print-type
        print filesystem type 
    -x, --exclude-type=TYPE
        limit listing to filesystems not of type TYPE 
    -v
        (ignored) 
    --help
        display this help and exit 
    --version
        output version information and exit 
     
    SIZE may be (or may be an integer optionally followed by) one of following: 
    kB 1000, K 1024, MB 1,000,000, M 1,048,576, and so on for G, T, P, E, Z, Y.
    Previous
    Next
    » Oracle User Responsibility Script
Leave a Comment