The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
actual filesystem size during backup shorty UNIX for Dummies Questions & Answers 1 02-20-2008 06:05 PM
Maximum size of root filesystem in SCO 5.0.7 njsco SCO 2 09-24-2006 01:01 PM
/root filesystem size is full chomca Linux 6 06-04-2006 07:36 PM
Increasing the FileSystem Size aldowsary AIX 9 07-18-2005 04:59 AM
Changing Filesystem size. abidmalik Filesystems, Disks and Memory 2 03-05-2003 01:40 AM

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 04-24-2007
HAA HAA is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 24
display filesystem size that cross 75% as used

Hi Genius,

I would like to display filesystem size that cross 75% as used using df –k.
I would thank in advance for your answer.

Thanks and Regards,
HAA
  #2 (permalink)  
Old 04-24-2007
anbu23 anbu23 is offline Forum Advisor  
Registered User
  
 

Join Date: Mar 2006
Location: Bangalore,India
Posts: 1,398

Code:
$ df -k
Filesystem    1024-blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4            16384     10116   39%     1227    15% /
/dev/hd2          5013504   2045996   60%    27974     3% /usr
/dev/hd9var         32768     16320   51%     2881    36% /var
/dev/hd3            98304     14128   86%     2404    10% /tmp
/dev/hd1            16384     10336   37%      901    22% /home
/dev/db2_lv       2605056   1528484   42%     5517     1% /db2home
$ df -k | awk ' $4 > 75 '
/dev/hd3            98304     14128   86%     2404    10% /tmp

  #3 (permalink)  
Old 04-24-2007
HAA HAA is offline
Registered User
  
 

Join Date: Feb 2006
Posts: 24
Thumbs up

Anbu,

Thanks a lot for excellent answer.

Regards,
Hari
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 11:19 PM.


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