LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-16-2013, 04:38 AM   #1
Amit Kumar Gupta
LQ Newbie
 
Registered: May 2013
Posts: 16

Rep: Reputation: Disabled
command to find summarised size


I want to get the summarized size of all mounted systems.

If I use df I get the size of each mounted file system but that also doesn't help me.

But I want to have only the summarized size of all of the file systems. Is there any command to achiev that?
 
Old 05-16-2013, 04:44 AM   #2
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 584

Rep: Reputation: 129Reputation: 129
Code:
 df --total
 
Old 05-16-2013, 04:47 AM   #3
Amit Kumar Gupta
LQ Newbie
 
Registered: May 2013
Posts: 16

Original Poster
Rep: Reputation: Disabled
I have tried this does not work on my system. Does not fetch result as expected.
 
Old 05-16-2013, 05:24 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380
Quote:
Originally Posted by Amit Kumar Gupta View Post
I have tried this does not work on my system. Does not fetch result as expected.
What do you expect the result to be?

If I run df --total it shows a summarized total on the last line (added -HP for readability):
Code:
$ df -HP --total
Filesystem             Size   Used  Avail Use% Mounted on
/dev/mapper/VG_SYST-LV_ROOT   3.0G   1.6G   1.4G  54% /
/dev/mapper/VG_SYST-LV_HOME   7.9G   3.0G   4.8G  39% /home
.
.
.
/dev/mapper/3.Disk.Raid0-Personal   793G    58G   696G   8% /data/Personal
total                  3.3T   1.2T   2.0T  38%
Maybe your Linux (Unix?) system doesn't support this option, but without knowing what you use we cannot help you.
 
Old 05-16-2013, 05:40 AM   #5
Amit Kumar Gupta
LQ Newbie
 
Registered: May 2013
Posts: 16

Original Poster
Rep: Reputation: Disabled
Yes sir i have used df --total command and it is not working on my system. Is there any other command i can use for getting the same results as explained in your last post.
 
Old 05-16-2013, 05:45 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380
Quote:
Originally Posted by Amit Kumar Gupta View Post
Yes sir i have used df --total command and it is not working on my system. Is there any other command i can use for getting the same results as explained in your last post.
Don't repeat the same question and answer the questions that I asked you:
- What do you expect the result to be?
- Maybe your Linux (Unix?) system doesn't support this option, but without knowing what you use we cannot help you.


You need to tell us exactly what it is you want and what does not work.
 
Old 05-16-2013, 05:56 AM   #7
RudraB
Member
 
Registered: Mar 2007
Distribution: Fedora
Posts: 262

Rep: Reputation: 23
Quote:
Originally Posted by Amit Kumar Gupta View Post
Yes sir i have used df --total command and it is not working on my system. Is there any other command i can use for getting the same results as explained in your last post.
Amit, what druuna wants to know is the output of the command.
Generally, "does not work" is a vague situation.
run the command, and post the result. That will help everybody. Also, it will be helpful to post your distro and the version (say, ubuntu 13.4 or fedora 18 etc.)

May be you can spare some time to check How_To_Ask_a_Question.
 
Old 05-16-2013, 05:59 AM   #8
Amit Kumar Gupta
LQ Newbie
 
Registered: May 2013
Posts: 16

Original Poster
Rep: Reputation: Disabled
I want to get the summarized size of all mounted systems.

e.g. is
df -HP --total
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VG_SYST-LV_ROOT 3.0G 1.6G 1.4G 54% /
/dev/mapper/VG_SYST-LV_HOME 7.9G 3.0G 4.8G 39% /home
.
.
.
/dev/mapper/3.Disk.Raid0-Personal 793G 58G 696G 8% /data/Personal
total 3.3T 1.2T 2.0T 38%

I am trying to get same information as explained in total line.$ df --total command is not providing any result.I think it is not working.
 
Old 05-16-2013, 06:05 AM   #9
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380Reputation: 2380
Quote:
Originally Posted by Amit Kumar Gupta View Post
I want to get the summarized size of all mounted systems.

e.g. is
df -HP --total
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VG_SYST-LV_ROOT 3.0G 1.6G 1.4G 54% /
/dev/mapper/VG_SYST-LV_HOME 7.9G 3.0G 4.8G 39% /home
.
.
.
/dev/mapper/3.Disk.Raid0-Personal 793G 58G 696G 8% /data/Personal
total 3.3T 1.2T 2.0T 38%

I am trying to get same information as explained in total line.$ df --total command is not providing any result.I think it is not working.
And you still do not answer all the questions asked....... WHY!!

Answer this question: Which linux distro (or unix) are you using!
Answer this question: Post the output of the following command (on your box, do not copy/paste my example): df --total
 
  


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
[SOLVED] how to find folder size using command sumeet inani Linux - Newbie 4 11-09-2009 07:48 AM
The command to find the size of the partitons Gins Linux - General 18 10-29-2006 01:27 PM
what command can i use to find files of a certain size? abutzki Linux - Newbie 2 01-31-2006 07:43 AM
command to find size of a dir Longinus Linux - Newbie 3 08-01-2004 08:19 PM
Command to find total file size satimis Linux - Newbie 1 01-22-2004 11:19 AM


All times are GMT -5. The time now is 10:08 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