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
how to append spaces(say 10 spaces) at the end of each line based on the length of th prathima UNIX for Dummies Questions & Answers 17 01-28-2009 04:10 PM
command to find free disk space on solaris harishankar SUN Solaris 2 08-26-2007 11:47 AM
free disk space calc ninjanesto High Level Programming 1 11-10-2006 11:03 AM
Strip leading and trailing spaces only in a shell variable with embedded spaces jerardfjay Shell Programming and Scripting 6 03-07-2005 02:24 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-28-2007
tads98 tads98 is offline
Registered User
  
 

Join Date: May 2005
Posts: 40
identify free disk spaces

Hi experts,

I need to determine if I have 4GB free space on my UNix server? Is there a way that I can do it instead of executing df -k . in each folder?


Thanks for your help.
  #2 (permalink)  
Old 02-28-2007
sb008 sb008 is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 384
Quote:
Originally Posted by tads98
Hi experts,

I need to determine if I have 4GB free space on my UNix server? Is there a way that I can do it instead of executing df -k . in each folder?


Thanks for your help.
"df -k ." reports the free disk space on the file system where your current directory is located on.

Moving to a different directory on the same file system will report the same result.

"df -k" will report the free space on all file systems.
  #3 (permalink)  
Old 02-28-2007
tads98 tads98 is offline
Registered User
  
 

Join Date: May 2005
Posts: 40
thanks.

the commnad that I executed was

bdf -l

Sample result

Filesystem kbytes used avail %used Mounted on
/dev/optvg2/fs_psofthr80 10485760 6742188 3525759 0.66 /psoft/hr80
/dev/optvg3/fs_PSstore 8388608 3969428 4281580 48% /prod/home01/store/psoft
/dev/optvg2/fs_psoftfs80 10485760 3715547 6375094 37% /psoft/fs80
/dev/optvg2/fs_psoftreports 12582912 5506488 6875538 44% /psoft/reports
/dev/optvg3/fs_psoftarch 8388608 3174 8123396 0%
  #4 (permalink)  
Old 03-01-2007
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,754
Code:
 bdf | awk '{ sum+=$4 } END {printf("%12.0f\n", sum)}'
Closed Thread

Bookmarks

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 01:09 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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