您的位置:首页 > 运维架构 > Linux

Linux du

2014-01-14 11:12 302 查看
du命令可以获取各文件空间消耗

-h, -k 参数含义与其他命令一样

-s: Only display a grand total

-c: produce a grand total

-a: include files, not just directories

[oracle@odilab tt]$ du -a
210264  ./3.txt
4       ./1.txt
4       ./t1/t2.txt
4       ./t1/t1.txt
12      ./t1
475228  ./4.zip
685512  .
[oracle@odilab tt]$ du
12      ./t1
685512  .
[oracle@odilab tt]$ du -s
685512  .
[oracle@odilab tt]$ du -c
12      ./t1
685512  .
685512  total
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: