Environmental variables are usually used to store the paths so that you don’t have to remember the complete path. Wouldn’t it be easy to just write %windir% in Run or command prompt to open the folder where Windows is installed? Yes, thats the use of environmental variables. Same applies to Linux platform too, just the difference is that in Linux you need to use $ sign before the variable name. Continue reading »
Feb 14
Feb 14
Here is a simple bash script that I wrote to get a notification email whenever any of the server partition grows over the defined size. The size can be defined for MAXSIZE variable. You can then setup a cron to run this script after every few hours. You will not be bombarded with the notification emails as this script will send the notification email only when a partition is over the MAXSIZE. Continue reading »