some commands for disk management

来源:互联网 发布:淘宝美工课件 编辑:程序博客网 时间:2024/06/05 00:36

1. df  (view disk partition usage)

        -l        only show the local disk  (default)

        -a       show all file system disk usage, include 0 byte file system

        -h       The most appropriate unit to calculate the disk capacity of 1024

        -H      The most appropriate unit to calculate the disk capacity of 1000

        -T       display disk partition type

        -t        display the specified file system disk partition

        -x       dont display the specified file system disk partition


2. du  (count the file size)

        -b       byte

        -k       KB

        -m      MB

        -h       The most appropriate unit to calculate the file size of 1024

        -H      The most appropriate unit to calculate the file size of 1000

        -s       count the specified file

0 0