The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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
How to get free disk space size in C/C++ program( Solaris system) yidu High Level Programming 4 01-30-2009 12:49 AM
free some space in file system fu4d UNIX for Dummies Questions & Answers 6 04-11-2008 04:27 AM
how to get the file system size lucaxvu High Level Programming 1 02-13-2008 06:17 PM
file system size magasem AIX 7 02-06-2008 04:21 AM
File system size change jvinn UNIX for Advanced & Expert Users 9 05-11-2005 06:13 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-28-2005
videsh77 videsh77 is offline
Registered User
  
 

Join Date: Aug 2004
Posts: 144
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.
  #2 (permalink)  
Old 01-28-2005
Perderabo's Avatar
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,100
Just use "df ."
  #3 (permalink)  
Old 01-28-2005
bongobonga bongobonga is offline
Registered User
  
 

Join Date: Aug 2002
Location: dublin ireland
Posts: 5
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
  #4 (permalink)  
Old 01-31-2005
youwantwhat youwantwhat is offline
Registered User
  
 

Join Date: Jan 2005
Location: Huntsville, AL
Posts: 9
df -k will give you all info about each mounted
  #5 (permalink)  
Old 02-01-2005
zazzybob's Avatar
zazzybob zazzybob is offline Forum Advisor  
Registered Geek
  
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
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
  #6 (permalink)  
Old 02-03-2005
videsh77 videsh77 is offline
Registered User
  
 

Join Date: Aug 2004
Posts: 144
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
  #7 (permalink)  
Old 02-03-2005
Ygor's Avatar
Ygor Ygor is offline Forum Staff  
Moderator
  
 

Join Date: Oct 2003
Location: -31.96,115.84
Posts: 1,402
Perderabo has already supplied the answer.

df -k .

where . = current directory
Sponsored Links
Closed Thread

Bookmarks

Tags
linux

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0