LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-01-2009, 02:51 AM   #1
sendhils13
LQ Newbie
 
Registered: Jul 2008
Posts: 6
Blog Entries: 1

Rep: Reputation: 0
Smile How to View the free space in unix flavors ...


hi every body .....

i'd like know how to view the free space in linux . when df -h we're able to view mounted partitions and partitions space .. But i want to see what is the free space available in hdd ... Same when we do this windows going and checking in disk manager ..... Let us know any solutions for this ....




Regards,

Sendhil Kumar.M
materialsen@gmail.com
 
Old 10-01-2009, 03:03 AM   #2
senthilds
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
use the following command
free -m
 
Old 10-01-2009, 03:15 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Welcome to LQ

You can use du or df
If you want a grafical interface, look at
"disk usage analyzer"
in your windowmanager
 
Old 10-01-2009, 05:32 AM   #4
sendhils13
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Smile

df display the mounted partition size , du displays the directory size .. how to view free space of hdd ....

Quote:
Originally Posted by repo View Post
Welcome to LQ

You can use du or df
If you want a grafical interface, look at
"disk usage analyzer"
in your windowmanager
 
Old 10-01-2009, 05:33 AM   #5
sendhils13
LQ Newbie
 
Registered: Jul 2008
Posts: 6

Original Poster
Blog Entries: 1

Rep: Reputation: 0
Smile

free -m will displays the space of primary memory and virtual memory ...


Quote:
Originally Posted by senthilds View Post
use the following command
free -m
 
Old 10-01-2009, 11:44 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,774

Rep: Reputation: 2537Reputation: 2537Reputation: 2537Reputation: 2537Reputation: 2537Reputation: 2537Reputation: 2537Reputation: 2537Reputation: 2537Reputation: 2537Reputation: 2537
No; free shows RAM, OP asked for disk space.
Quote:
But i want to see what is the free space available in hdd .
As said above, either or both of df, du will show that.
 
Old 10-02-2009, 03:04 PM   #7
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Did the OP mean something like baobab or filelight?
 
Old 10-02-2009, 11:41 PM   #8
freelinuxtutorials
Member
 
Registered: Oct 2009
Posts: 70

Rep: Reputation: 21
i always use the "df" command to check my HD free space. just man it, and the -h parameter could be useful for you
 
Old 10-03-2009, 12:51 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 18,889

Rep: Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207Reputation: 3207
Nope - "df" is only useful for mounted filesystems.
Parted can be coerced to display unallocated (i.e. "free") space on the disk itself - see the manpage and/or help text.
 
Old 10-04-2009, 11:56 PM   #10
senthilds
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
checking free space

df - command is used for checking the space of mounted file systems only not for all.
df -h

-h option is display the space human readable.

if you want to checking the space for your disk use the "free" command
 
Old 10-05-2009, 01:27 PM   #11
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553Reputation: 553
Hi everyone,

As this thread/question is not server-specific, but can/could apply to any *nix OS whether operating in a server capacity or not, I have moved it to the "Linux General" department.

Sasha.
 
Old 10-13-2009, 04:50 AM   #12
Mohammad.Khaleel
LQ Newbie
 
Registered: Oct 2009
Posts: 3

Rep: Reputation: 0
hi

if you need to see the free space use the df command

df -kb
 
Old 10-13-2009, 11:40 PM   #13
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,774

Rep: Reputation: 2537Reputation: 2537Reputation: 2537Reputation: 2537Reputation: 2537Reputation: 2537Reputation: 2537Reputation: 2537Reputation: 2537Reputation: 2537Reputation: 2537
If you mean unmounted partitions,

fdisk -l

(lower case L)
 
Old 10-14-2009, 11:06 PM   #14
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 09:44 PM.
 
Old 10-14-2009, 11:13 PM   #15
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 404Reputation: 404Reputation: 404Reputation: 404Reputation: 404
pydf is a nice alternative to df I've used for years. Much more readable to me.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help removing free space to create Raw free space nightmare55 Linux - Newbie 11 10-01-2009 03:07 AM
View disk space free piechart in KDE Merlyn Ubuntu 2 10-01-2006 05:43 AM
Not enough free space on hard drive with 50g of free space??? auoq SUSE / openSUSE 5 10-13-2004 08:21 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM
How to view the free space of a disk in Redhat 9.0 ? kinct Linux - Distributions 3 07-30-2003 11:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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