Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting


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

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 07-20-2012
Registered User
 
Join Date: Jul 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Disk Space Output

I am very new to unix and Linux, So I have a question about LINUX and AIX.
What LINUX and AIX commands can be used to get the following output:

071912 GB blocks Free %Iused Mounted on
071912 5.00 4.64 8% /
071912 15.00 9.44 38% /usr
071912 6.00 2.56 58% /var
071912 15.00 12.88 15% /tmp
071912 3.00 1.97 35% /home
071912 0.50 0.50 1% /admin

Another question is how to write a script which will give u a warning about the large files getting filled upto a certain level and send out emails to warn the user. I will appreciate the help thank you.
Sponsored Links
    #2  
Old 07-20-2012
clx clx is offline Forum Advisor  
Registered User
 
Join Date: Jun 2007
Location: Mumbai,India
Posts: 1,417
Thanks: 101
Thanked 133 Times in 129 Posts
It is more likely a df command output. exact output and formatting slightly varies with the operating systems. Please try on your system and check the man pages for more details.

About the second requirement, You could use find command to find the files which are having huge (said) size.

Search for similar threads in this forum. you might get lots of stuffs there.

man df , man find and check for -size inside it and man mailx
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Disk space script output in color ajaypatil_am Emergency UNIX and Linux Support !! Help Me!! 30 07-05-2012 06:30 AM
Disk space? jbarbuto Solaris 4 08-18-2004 07:58 AM
available disk space on disk device??? alan UNIX for Dummies Questions & Answers 4 01-02-2004 02:06 AM
Disk space jxh461 Filesystems, Disks and Memory 1 06-24-2002 03:23 PM



All times are GMT -4. The time now is 12:11 AM.