Sometimes it's usefull to create sparse files on Linux. For example, when you're creating Xen hard disk images, creating a sparse file will take up much less space then creating a fully allocated file, and will only start taking up space as it fills up.
If you need to find out the real space that the file is taking up, use du -lah
220K ./filename.img
328K .
Using ls will only show you how big the file is supposed to be
2total 36K
3drwxr-xr-x 2 root root 4.0K Jun 5 13:59 .
4drwxr-xr-x 3 root root 4.0K Jun 5 13:59 ..
5-rw-r--r-- 1 root root 129G Jun 5 13:59 filename.img
#1 by Chris on 8/18/08 - 7:53 PM
#ls -ls
[quote]
35666260 -rwxr-xr-x 1 root root 107374182401 Aug 18 13:55 centos5.img
20 -rwxr-xr-x 1 root root 53687091201 Aug 15 19:50 fedora10a.img
5437244 -rwxr-xr-x 1 root root 53687091201 Aug 18 13:55 fedora8.img
4284024 -rwxr-xr-x 1 root root 53687091201 Aug 18 13:37 fedora9.img
[/quote]
#2 by aiweiera on 11/25/09 - 1:58 AM
I love <a href="http://www.high-replica-handbags.com/nbags-boston-... boston bag</a> Handbags, i think it is better than <a href="http://www.high-replica-handbags.com/louis-vuitton... Graffiti</a>.
#3 by aiweiera on 11/25/09 - 2:00 AM
I love <a href="http://www.high-replica-handbags.com/nbags-boston-... boston bag</a> Handbags, i think it is better than <a href="http://www.high-replica-handbags.com/louis-vuitton... Graffiti</a>.
#4 by aiweiera on 11/25/09 - 2:00 AM
I love <a href="http://www.high-replica-handbags.com/nbags-boston-... boston bag</a> Handbags, i think it is better than <a href="http://www.high-replica-handbags.com/louis-vuitton... Graffiti</a>.
#5 by aiweiera on 11/25/09 - 2:02 AM
I love <a href="http://www.high-replica-handbags.com/nbags-boston-... boston bag</a> Handbags, i think it is better than <a href="http://www.high-replica-handbags.com/louis-vuitton... Graffiti</a>.
#6 by aiweiera on 11/25/09 - 2:04 AM
I love <a href="http://www.high-replica-handbags.com/nbags-boston-... boston bag</a> Handbags, i think it is better than <a href="http://www.high-replica-handbags.com/louis-vuitton... Graffiti</a>.
#7 by tiffany outlet on 8/3/10 - 9:46 AM
The article is very professionally written. I enjoy reading every day
good url!
good web!
good website!
#8 by chanel wallet on 8/5/10 - 11:14 AM
#9 by Christian Louboutin on 8/30/10 - 12:28 AM
#10 by ugg women on 9/20/10 - 4:30 AM
#11 by bailey ugg boots uk on 9/20/10 - 6:28 AM
#12 by Christian Louboutin Heels on 10/20/10 - 12:47 AM
http://www.clshoesok.org/christian-louboutin-pumps...
http://www.clshoesok.org/christian-louboutin-boots...
#13 by GHD Australia on 12/9/10 - 6:06 AM
#14 by blow up doll on 12/16/10 - 10:07 AM
#15 by cheap gucci on 5/19/11 - 5:43 AM
#16 by Emal on 6/30/11 - 5:47 AM
#17 by pandora jewelry on 10/21/11 - 3:41 AM