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.


Post a comment

mail.png


相似文章|Related Entries

最近更新|Recent Entries

不定期更新|Handy Entries

相似标签|Related Tags

Shell
Database (12)
DB2 (13)
Dreamhost (2)
学习笔记 (14)
安全 (1)
安装 (1)
数据库 (15)
权限 (1)

分类栏目|Categories

按月归档|By Month

2008
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

站内链接|Site Links

Powered by
Movable Type 3.34