在AIX中查看文件夹占用空间大小

mac2022-06-30  27

在AIX中查看文件夹占用空间大小 用du -sg 可看出当前文件夹的大小(以G为单位); 用du -sg filename 可看出当前文件夹下所有文件或文件夹的大小(以G为单位); du -sk ,du -sm 则分别以KB,MB为单位。 例子: root# ls -l total 8 -rwxr-xr-x    1 root     system           42  7月28 19时54 test.sh -rw-r--r--    1 root     system            0  7月28 19时44 test_date drwxrwxrwx    3 root     system          256  7月27 08时47 webalizer-2.21-02-src 用 ls -l 查看时, 是以byte为单位显示的, 如42 表示 test.sh的实际大小,256表示 webalizer-2.21-02-src 该目录的大小为256byte(注意,不是指该目录下文件的大小) 用du -sk 查看结果: root# du -sk 3748    . 用du -sk * 查看结果: root# du -sk * 4       test.sh 0       test_date 3744    webalizer-2.21-02-src

转载于:https://www.cnblogs.com/myitworld/archive/2011/04/08/2214796.html

最新回复(0)