LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-09-2007, 12:12 AM   #1
Registered: Oct 2004
Location: Londinium
Distribution: CentOs 4, OSX Tiger
Posts: 93

Rep: Reputation: 15
partitions - how to find current size from cmdline


I can't find any commands that will tell me the current partition sizes of the system. Does anyone know of any? I'm working remotely and can't use a gui either.

Sorry, but searching for "linux partition sizes" and any other combination of words just brings up *how* to partition and not how to find out partion info.

Any help is much appreciated.
Old 01-09-2007, 12:24 AM   #2
Registered: Oct 2004
Location: Londinium
Distribution: CentOs 4, OSX Tiger
Posts: 93

Original Poster
Rep: Reputation: 15
well, with some burrowing I've found the tools
df .
du -s *

and these have helped but if anyone knows of anything more comprehensive then please let me know.
Old 01-09-2007, 12:49 AM   #3
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
df -h
for "human readable"

df .
is only for the filesystem you are located on.

Old 01-09-2007, 01:39 AM   #4
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,141

Rep: Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262
"df" is ok for mounted partitions - I prefer "df -hT" (see "man df" for details)

To see all your partitions, use something like "fdisk -l" (lower case ell). For your specific query, try "sfdisk -l -uM".

Man pages are available for all.


fdisk, partitions

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
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
Unable to see current FreeBSD partitions from Slack install disc1 frankie_DJ Slackware 9 02-01-2006 10:18 PM
Partitions Size kopikat Linux - Newbie 1 12-24-2004 09:21 AM
Size of various partitions Remote Mandriva 3 02-11-2004 09:37 PM
Partitions size spy5600 Linux - Newbie 7 08-03-2003 10:21 AM

All times are GMT -5. The time now is 10:53 AM.

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