ls與du的問題 - Linux

By Regina
at 2011-05-24T19:03
at 2011-05-24T19:03
Table of Contents
各位好
今天小弟在CentOS上使用了virt-machine 建立了一個image
(有勾選一個選項 是不allocate全部的file size)
這個image size的大小使用du和ls看的並不相同
ls 的大小是在建立image的時候 所設定的,如設定20GB, ls所出現的size會約20GB
但是使用du看的話,真正的size是約6~7GB
不過真正在傳輸檔案的時候,仍然會是20GB的這個size (所以傳送的時間還是很久…)
不知道有沒有什麼辦法可以把真正有使用到的那些資料取出來呢
(雖然ls是20GB的檔案,取出來的是6GB的檔案這樣)
不過小弟也想偷偷問一下 du和ls為什麼顯示出來的size會不相同…
謝謝各位版大 <(_ _)>
--
Tags:
Linux
All Comments

By Isla
at 2011-05-25T20:00
at 2011-05-25T20:00

By Hedwig
at 2011-05-27T05:20
at 2011-05-27T05:20

By Ethan
at 2011-05-28T23:00
at 2011-05-28T23:00

By Kama
at 2011-05-29T11:44
at 2011-05-29T11:44

By Zora
at 2011-05-31T13:47
at 2011-05-31T13:47

By Victoria
at 2011-06-03T17:40
at 2011-06-03T17:40

By Charlotte
at 2011-06-04T03:25
at 2011-06-04T03:25

By Leila
at 2011-06-08T20:04
at 2011-06-08T20:04

By Irma
at 2011-06-11T16:47
at 2011-06-11T16:47

By Leila
at 2011-06-14T15:36
at 2011-06-14T15:36

By Kelly
at 2011-06-16T23:59
at 2011-06-16T23:59

By Eden
at 2011-06-21T23:51
at 2011-06-21T23:51

By George
at 2011-06-23T11:50
at 2011-06-23T11:50

By Emma
at 2011-06-24T05:07
at 2011-06-24T05:07
Related Posts
UNIX工作站 .tshrc怎麼開啟...

By Candice
at 2011-05-24T13:36
at 2011-05-24T13:36
筆電合上螢幕待機

By Freda
at 2011-05-24T12:23
at 2011-05-24T12:23
取得固定時間內檔案被存取的次數

By Noah
at 2011-05-24T11:11
at 2011-05-24T11:11
筆電合上螢幕待機

By Andy
at 2011-05-23T23:08
at 2011-05-23T23:08
chomd

By Gary
at 2011-05-23T20:38
at 2011-05-23T20:38