用镜头记录,用心灵体验 | 订阅本站 | 所有笔记 | 亲和力设计 | 流量

DB2 学习笔记

博客话题:DB2,Linux,Web,业余无线电,户外,摄影,截拳道,Thankpad,其他

Unix Shell

du: check files or directories size

check files or directories size 

$ du -sk /home/zy
87    /home/zy


-s calculates the total disk usage for all specified files and directories.

-k calculates in 1024-byte unites, by default, it will calculate in block count(512-byte in most)

$ du -ak /home/zy
23      ../zy/m1
52      ../zy/m2
1       ../zy/crm/global_brand_prod.bcp
4       ../zy/crm/crm.ksh
1       ../zy/crm/in_files
7       ../zy/crm/l_global_brand_prod.sql
12      ../zy/crm
87      ../zy


-a calculates each files and directories specified.


Alex's picture

my email address in picture

搜索|Search

评论|Recent Comments

按月归档|By Month

2009
07
2008
11
10
07
05
04
03
02
01
2007
12
10
07
06
05
04
03
02
01
2006
12
11
10
09
08
07
06
05
04
03
02
01
2005
11
10
09
08
07
04
03
2004
12
11
10
09
08
07
06
05
04
03
02
01
2003
12
10
09
08
06
2002
09
08
04
03
02
2001
12
09
07
06
05

我读|My Books

我的链接|My Links

我的朋友|My Friends

Creative Commons License
This blog is licensed under a Creative Commons License.
Movable Type 4 Logo