You can do everything with shell scripts! Anything you can do from your terminal, you can do with a shell script, and if you like you can enable a cronjob to schedule the execution of your shell scripts. In this post, I’m going to cover the basics on getting up and running with shell scripts on either Mac or Linux systems.
Your system should speak the current time to you if you have done everything correctly. You can also type flushdns.sh and press enter and your system will clear your DNS cache then speak a confirmation message to you stating ‘Your DNS resolver cache has now been flushed’.
Now you can get creative and create scripts for all sorts of tasks. I will cover how to schedule the automated execution of your shell scripts using cronjobs in a follow-up post.
I hope you found this guide useful. If you have any comments, feedback or suggestions, please feel free to contact us. Thanks for reading!