LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 09-13-2001, 03:28 PM   #1
thetruevoice
Member
 
Registered: Feb 2001
Posts: 51

Rep: Reputation: 15
space?


i've been workin on linux for a little while now and i just realized i dont know the simplest thing.

from a command prompt what do you type to show remaining and used space of the drive. (kinda like dir in dos)

thnx
 
Old 09-13-2001, 03:34 PM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
You probably want to look at
Code:
df -h
which will show you the remaining space on all your mount points. If you wanted to look at a single mount point, say /boot then you would use
Code:
df -h /boot
The -h just reports the free space in a human readable form using KB, MB & GB - if you don't use this option then it just shows you in KB. Its worth noting that if you use the df that is packaged with some other Unix systems it reports the free space in Posix standard 512-byte blocks, which can be really confusing when you expecting it to be in KBytes!!

HTH

Jamie...
 
Old 09-13-2001, 03:49 PM   #3
thetruevoice
Member
 
Registered: Feb 2001
Posts: 51

Original Poster
Rep: Reputation: 15
thanks, thats all i needed to know
 
  


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
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 08:05 AM
notify user space application from the kernel space lordofring Linux - Software 2 06-22-2009 01:32 PM
3Gb of disk space lost! Disk space problem or mother board conflicts with HDD Mistreated Linux - Hardware 4 12-06-2004 04:58 PM
Not enough space for root directory on a drive with 50g free space??? auoq Linux - Newbie 1 10-13-2004 01:44 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 06:10 AM


All times are GMT -5. The time now is 11:08 AM.

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