隨筆-60  評論-35  文章-15  trackbacks-0

          du -sh 文件或目錄名

          用法:du [選項(xiàng)]... [文件]...
          總結(jié)每個(gè)<文件>的磁盤用量,目錄則取總用量。

          長選項(xiàng)必須用的參數(shù)在使用短選項(xiàng)時(shí)也是必須的。
          ? -a, --all???????????? write counts for all files, not just directories
          ? -B, --block-size=SIZE use SIZE-byte blocks
          ? -b, --bytes?????????? print size in bytes
          ? -c, --total?????????? produce a grand total
          ? -D, --dereference-args? dereference FILEs that are symbolic links
          ? -h, --human-readable? 以容易理解的格式印出文件大小 (例如 1K 234M 2G)
          ? -H, --si????????????? 類似 -h,但取 1000 的次方而不是 1024
          ? -k??????????????????? 即 --block-size=1K
          ? -l, --count-links???? 連硬鏈接的大小也計(jì)算在內(nèi)
          ? -L, --dereference???? 找出任何符號鏈接指示的真正目的地
          ? -S, --separate-dirs?? 不包括子目錄的占用量
          ? -s, --summarize?????? 只分別計(jì)算命令列中每個(gè)參數(shù)所占的總用量
          ? -x, --one-file-system? skip directories on different filesystems
          ? -X FILE, --exclude-from=FILE? Exclude files that match any pattern in FILE.
          ????? --exclude=PATTERN Exclude files that match PATTERN.
          ????? --max-depth=N???? print the total for a directory (or file, with --all)
          ????????????????????????? only if it is N or fewer levels below the command
          ????????????????????????? line argument;? --max-depth=0 is the same as
          ????????????????????????? --summarize

          posted on 2006-11-03 13:20 Q系列類、方法、變量…… 閱讀(625) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          <2006年11月>
          2930311234
          567891011
          12131415161718
          19202122232425
          262728293012
          3456789

          常用鏈接

          留言簿(2)

          隨筆檔案

          文章分類

          文章檔案

          相冊

          優(yōu)秀文章、知識

          電子書下載

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 亚东县| 望谟县| 岐山县| 广宁县| 延长县| 长宁区| 应城市| 延安市| 涞水县| 东乡县| 汤原县| 武夷山市| 博罗县| 桐柏县| 房产| 科技| 宁强县| 永德县| 合川市| 陆丰市| 溧水县| 合水县| 乐山市| 莱阳市| 平度市| 阿克| 绵阳市| 山东| 宁德市| 中卫市| 砀山县| 库车县| 永春县| 阳江市| 酉阳| 花莲市| 延吉市| 尖扎县| 宁城县| 横峰县| 广州市|