LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   space? (https://www.linuxquestions.org/questions/linux-newbie-8/space-6506/)

thetruevoice 09-13-2001 02:28 PM

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

jharris 09-13-2001 02:34 PM

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...

thetruevoice 09-13-2001 02:49 PM

thanks, thats all i needed to know


All times are GMT -5. The time now is 07:03 AM.