The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
free some space in file system fu4d UNIX for Dummies Questions & Answers 6 04-11-2008 01:27 AM
how to get the file system size lucaxvu High Level Programming 1 02-13-2008 02:17 PM
file system size magasem AIX 7 02-06-2008 12:21 AM
How to get free disk space size in C/C++ program( Solaris system) yidu High Level Programming 3 08-07-2007 02:26 AM
File system size change jvinn UNIX for Advanced & Expert Users 9 05-11-2005 03:13 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-28-2005
Registered User
 

Join Date: Aug 2004
Posts: 141
Stumble this Post!
Free size for File System

How to find the free size currently FileSystem has, on the disk mounted?

I know 'df' lists all the mounted disks, but I am interested to know details
for the filesystem, in which currently I am working.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 01-28-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,449
Stumble this Post!
Just use "df ."
Reply With Quote
  #3 (permalink)  
Old 01-28-2005
Registered User
 

Join Date: Aug 2002
Location: dublin ireland
Posts: 5
Stumble this Post!
The command df is the one which you want. df does more that just list the mounted file systems, it also tells you where they are mounted, the file type, size of the mounted partition and how much of the partition is used.
For example 'df -h' on my computer gives the following

Filesystem Size Used Avail Use% Mounted on
/dev/hda1 18G 5.6G 12G 34% /
tmpfs 248M 0 248M 0% /dev/shm

This says that hda1 has 5.6 GB free
Reply With Quote
  #4 (permalink)  
Old 01-31-2005
Registered User
 

Join Date: Jan 2005
Location: Huntsville, AL
Posts: 9
Stumble this Post!
df -k will give you all info about each mounted
Reply With Quote
  #5 (permalink)  
Old 01-31-2005
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Stumble this Post!
Under HP-UX (10.20) you've also got the bdf command which will give a little saner output if you're coming from a Linux system and are used to the df output given there....

bdf -i . for the current filesystem

Just for info, it's always useful to post the output of "uname -a" so that we know which UNIX variant you're using.

Cheers
ZB
Reply With Quote
  #6 (permalink)  
Old 02-03-2005
Registered User
 

Join Date: Aug 2004
Posts: 141
Stumble this Post!
Problem is, I cannot determine some path, is 'mounted on' what.

I already tried df -k. It gives me a complete list.

I want to know something, if I am in /abc/def/ghi

then on which filesystem it is mounted, how much free space, % utilized & so on... only for the filesystem consisting /abc/def/ghi.

uname -a gives following output -
AIX machinename 2 5 0038967C4C00
Reply With Quote
  #7 (permalink)  
Old 02-03-2005
Ygor's Avatar
Moderator
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,243
Stumble this Post!
Perderabo has already supplied the answer.

df -k .

where . = current directory
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 08:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0