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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-01-2005, 12:20 AM
|
#1
|
Senior Member
Registered: Sep 2005
Location: Kuala Lumpur, Malaysia
Distribution: Ubuntu 11.04
Posts: 1,731
Rep:
|
How to check free disk space
fdisk -l shows u your partitions' names
how about to know the free space available?
|
|
|
Click here to see the post LQ members have rated as the most helpful post in this thread.
|
10-01-2005, 12:26 AM
|
#2
|
Senior Member
Registered: Jan 2003
Posts: 2,786
|
df -h /path/to/dir
That requires you to know where your partitions are mounted. A look at /etc/fstab will set things straight if you have trouble remembering.
|
|
|
10-01-2005, 02:03 AM
|
#3
|
Member
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276
Rep:
|
df -h
With no options will give you free space of all mounted drives---no need to worry about fstab or remembering.
|
|
2 members found this post helpful.
|
10-01-2005, 02:30 AM
|
#4
|
Member
Registered: May 2005
Location: München, Germany
Distribution: Slackware, Arch
Posts: 386
Rep:
|
If you have QTParted (GUI partitioning software) it'll give you the details about every partition.
-A
|
|
|
10-01-2005, 02:34 AM
|
#5
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Quote:
Originally posted by Optimistic
df -h
With no options will give you free space of all mounted drives---no need to worry about fstab or remembering.
|
df on its own does the same thing without any flags.
|
|
|
10-02-2005, 06:30 AM
|
#6
|
Member
Registered: Jun 2004
Location: Germany
Distribution: Debian (testing)
Posts: 276
Rep:
|
Quote:
Originally posted by reddazz
df on its own does the same thing without any flags.
|
Yep, but the h flag makes it easier to read. The h is for human-readable, after all.
|
|
1 members found this post helpful.
|
10-02-2005, 09:23 AM
|
#7
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Quote:
Originally posted by Optimistic
Yep, but the h flag makes it easier to read. The h is for human-readable, after all.
|
To clarify my point, on most Linux distros running "df -h" and "df" results in the same output (human-readable form usually in gigabytes), so its not necessary to use "df -h" unless you want to.
|
|
|
10-02-2005, 09:07 PM
|
#8
|
Senior Member
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Rep:
|
Quote:
To clarify my point, on most Linux distros running "df -h" and "df" results in the same output (human-readable form usually in gigabytes), so its not necessary to use "df -h" unless you want to.
|
Really? I've never seen that before in 4 years of using linux.
Are you sure you don't have a bash alias for df?
|
|
|
10-03-2005, 02:34 AM
|
#9
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Quote:
Originally posted by bulliver
Really? I've never seen that before in 4 years of using linux.
Are you sure you don't have a bash alias for df?
|
Nope, I have not setup any aliases but this could have been done by the distro.
|
|
|
10-04-2005, 05:04 PM
|
#10
|
LQ Newbie
Registered: Sep 2005
Location: Richardson, Texas
Distribution: PCLinuxOS
Posts: 12
Rep:
|
Thank you. df -h is suitable.
|
|
|
All times are GMT -5. The time now is 06:09 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|