Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
The inode usage is in percent, meaning a value between 0 and 100, and you're checking if it's greater than 200000. Of course it will never be true. Unless of course you really are expecting a value >200000%...the highest on any of my machines is 9%. If you post the output of "df -hi" it might clarify some things.
Also, you shouldn't put $dui in back ticks in your echo. Back ticks mean "execute what's inside here as if it were typed on the command line". $dui is just going to contain a number, which can't be executed as if it were a command, so it will fail. Remove the back ticks if you just want to echo the number.
Last edited by suicidaleggroll; 09-25-2012 at 12:22 PM.
Hey, thanks guys, i followed your advise and changed USAGE to 20% and also piped it to mailx, but it still doesn't send, i check my mail there is nothing, even in qmail queue there is nothing, is there something else am missing?
inode percentage is a a percentage of filesystem NOT directory. Although you mount filesystems on directories called mount points it does not mean all directories are mount points.
To really figure out percentage for subdirectories or files inside a mount point you'd have to figure out:
1) How many inodes a specific filesystem allows.
2) How many inodes a given subdirectory or file uses.
3) Do a calculation to determine the percentage 2 is of 1.