954,178 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Free space?

What can I type to find out the total amount of space on a partition and how much free space is left?

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

I would log on to a *nix box but I cant log on to daniweb from there.

but if I remeber it right its

du


or

man du
)BIG"B"Affleck
Master Poster
Banned
766 posts since Oct 2003
Reputation Points: 25
Solved Threads: 8
 

Nope, turns out that gives disk usage on a per file basis, not for an entire partition. :(

There's a program I'm looking for - can't remember its name - but it gives the size of each partition, along with the amount of available space per partition ... all in a tabular format. Sorta like free only for hdd instead of RAM.

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

Just curious what distro your using?
Did you search all the man pages for it.
Search here http://sourceforge.net/softwaremap/trove_list.php

)BIG"B"Affleck
Master Poster
Banned
766 posts since Oct 2003
Reputation Points: 25
Solved Threads: 8
 

RH 7.3 .... I haven't checked anywhere yet. Just wanted to check my available free space to make sure I wasn't running out and decided to post first.

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

Ok, here it is man this

man df


then use whatever switch you want like -k ect...

df -k


In a terminal and not a run box ofcourse.

)BIG"B"Affleck
Master Poster
Banned
766 posts since Oct 2003
Reputation Points: 25
Solved Threads: 8
 

Yes! That's what I wanted. Thanks :)

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

I like

df -h


:) Exactly what I wanted!

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

Even better is

df -Th


cuz it tells you the filesytem format as well (i.e. ext3)

cscgal
The Queen of DaniWeb
Administrator
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
 

Ok, whatever switch gets your jollies off.
*edit* It was me that rated your post,I just forgot to sign it

Sincerely Big "B"

)BIG"B"Affleck
Master Poster
Banned
766 posts since Oct 2003
Reputation Points: 25
Solved Threads: 8
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: