LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-05-2012, 11:12 PM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 36
How to determine the actual used space on a disk share using Sparse file?


I have lot of sparse file created under one share .

They all are scattered across different directories with in the share.

one way of determining them is to run ls -ltr instead of du .as du displays the actual used size and ls -ltr displays the sparse maximum size limit.

but this is not applicable on share level.

I can get the actual size of share by using df -h .
But how would i get the size considering sparse file maximum limit?

Hope i explained my problem correctly.
 
Old 01-06-2012, 12:00 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Not entirely sure what you want, but have you looked at the --apparent-size option for du http://linux.die.net/man/1/du ?
See also 'ls -ls' https://administratosphere.wordpress...t-why-and-how/
 
1 members found this post helpful.
Old 01-06-2012, 12:33 AM   #3
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
It worked like anything thanks.
 
  


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
real size of the drive. Actual disk space used. lgtrean Linux - General 9 10-08-2010 06:11 PM
How to determine the actual open files? thomas2004ch Linux - Newbie 7 09-09-2009 11:01 AM
Calculating Actual Disk Space with Hard Links JoeyB Linux - General 2 08-24-2009 03:34 PM
How do I determine disk space usage? econnections Linux - Newbie 4 08-28-2005 06:16 PM
reserving space on the disk for sparse files madhukirant Programming 1 08-17-2005 08:29 PM


All times are GMT -5. The time now is 10:45 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration