sdf (Link to sadm_df.sh)

Updated: 2018/08/11
O/S : Aix, Linux, MacOS

 
NAME

sdf (Link to sadm_df.sh)   -   SADMIN file system disk space usage.

 
SYNOPSIS

sdf (Link to sadm_df.sh)     [ -v -h  ]    [ -d   0-9  ]   

 
DESCRIPTION
  • The 'sdf' command present the current filesystem usage with a slightly different way.
    The report is sorted by mount point.
    The filesystem type is included in the report.
    There is a total line at the end of the report.
    The screen is cleared before presenting the report.

  • Here is an example of output
    $ sdf
    
    sdf - v1.2
    ====================================================================================================
    Filesystem                          Type     Size     Used     Avail    Use%     Mounted
    ====================================================================================================
    /dev/mapper/rootvg-root             xfs      2.0G     737M     1.3G     37%      /
    /dev/mapper/rootvg-lvx              xfs      245G     189G     56G      78%      /archives
    /dev/mapper/rootvg-backlv73         xfs      2.0G     896M     1.2G     44%      /backups
    /dev/sda1                           xfs      506M     250M     257M     50%      /boot
    devtmpfs                            devtmpfs 3.8G     0        3.8G     0%       /dev
    tmpfs                               tmpfs    3.8G     20M      3.8G     1%       /dev/shm
    /dev/mapper/rootvg-gitlv            ext4     3.9G     229M     3.4G     7%       /gitrepos
    /dev/mapper/rootvg-home             xfs      12G      5.0G     6.8G     43%      /home
    /dev/mapper/rootvg-install          ext4     58G      35G      21G      63%      /install
    /dev/mapper/rootvg-linternux        xfs      4.0G     120M     3.9G     3%       /linternux
    /dev/mapper/rootvg-vault            xfs      4.0G     307M     3.7G     8%       /mystuff
    /dev/mapper/rootvg-opt              xfs      2.0G     1.4G     636M     69%      /opt
    /dev/mapper/rootvg-psadminlv        xfs      2.0G     53M      2.0G     3%       /psadmin
    tmpfs                               tmpfs    3.8G     75M      3.8G     2%       /run
    tmpfs                               tmpfs    774M     0        774M     0%       /run/user/601
    tmpfs                               tmpfs    774M     72K      773M     1%       /run/user/602
    /dev/mapper/rootvg-sadmin           xfs      4.0G     2.7G     1.3G     68%      /sadmin
    tmpfs                               tmpfs    3.8G     0        3.8G     0%       /sys/fs/cgroup
    /dev/mapper/rootvg-tmp              xfs      3.0G     94M      2.9G     4%       /tmp
    /dev/mapper/rootvg-usr              xfs      9.8G     8.2G     1.7G     84%      /usr
    /dev/mapper/rootvg-var              xfs      4.9G     2.0G     3.0G     40%      /var
    /dev/mapper/rootvg-wikilv           xfs      4.0G     185M     3.9G     5%       /wiki
    /dev/mapper/rootvg-tadminlv         xfs      2.0G     305M     1.7G     15%      /wsadmin
    ====================================================================================================
    total                               -        379G     246G     131G     66%      -
    $ 
    


REQUIREMENTS
  • Only the bash shell is needed to run this command.

 
EXIT STATUS
[0]    An exit status of zero indicates success
[1]    Failure is indicated by a nonzero value, typically ‘1’.

 
AUTHOR
Jacques Duplessis (jacques.duplessis@sadmin.ca.).
Any suggestions or bug report can be sent at http://www.sadmin.ca/support.php

 
COPYRIGHT
Copyright © 2018 Free Software Foundation, Inc. License GPLv3+:
    - GNU GPL version 3 or later http://gnu.org/licenses/gpl.html.
This is free software, you are free to change and redistribute it.
There is NO WARRANTY to the extent permitted by law.


 
INDEX
NAME
SYNOPSIS
DESCRIPTION
OPTIONS
REQUIREMENTS
EXIT STATUS
AUTHOR
COPYRIGHT
SEE ALSO

Copyright © 2015-2019 - www.sadmin.ca - Suggestions, Questions or Report a problem at support@sadmin.ca