LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-11-2011, 05:51 PM   #1
bigteks
LQ Newbie
 
Registered: Aug 2011
Posts: 1

Rep: Reputation: Disabled
How to list true size of files with holes


I don't think 'ls' has a flag for this. Is there a command or simple script to list files with actual disk space consumed for each - in other words the thin or sparse size, as opposed to what 'ls' reports?
 
Old 08-11-2011, 06:34 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,129

Rep: Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986
Check out the wikipedia article.
 
Old 08-11-2011, 06:34 PM   #3
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
Quote:
Hi, Welcome to LQ!

LQ has a fantastic search function that may save you time waiting for an answer to a popular question.

With over 4 million posts to search it's possible the answer has been given.

Change to the dir you wish to investigate,

type,
Code:
 du
type,
Code:
 du --help
for more on du.

Hope this helps. Regards Glenn

du is disk-usage, there is another df, disk-free. ;-)
 
Old 08-11-2011, 06:38 PM   #4
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
Maybe this will help a bit. No specific solution, but it does show blocks used in ls -ls

http://administratosphere.wordpress....t-why-and-how/
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Seek script to monitor sizes of list of files and send alert if size changes Jon_Roland Linux - Security 3 03-28-2011 04:37 PM
[SOLVED] looking for a way to list files sorted by size mark_alfred Linux - General 4 08-22-2009 09:20 AM
how to create a list of files and folders (name and size only) rastiazul Linux - General 16 11-04-2008 03:14 PM
Howto? List all files in all directories ordered by size? rusty_turkey Linux - Newbie 2 06-17-2008 07:55 PM
How do I produce sorted list of files in current directory over a certain size? bangback Linux - Newbie 3 10-25-2006 12:11 AM


All times are GMT -5. The time now is 02:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration