preload preload preload preload

Shell script to notify Hard disk space utilization

The below script will check the hard disk space usage, using the command du and send an email alert if any of the partition is using more than 85% of space. vim disk-usage.sh #!/bin/sh df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5 " " $1 }' | while read output; do echo $output usep=$(echo $output | awk '{ print ...
3

Configuring Iptables on system startup

In Ubuntu we don't have a mechanism to start or stop iptables or we don't have a mechanism to restore iptables after restarting the system. Now we will see how to create a script for start and stop iptables also to make the script to start on system startup. 1. Create a Firewall script  vim /etc/set_iptables.bash echo 1 > ...
0