In this post I will be showing you how to manage services in Linux. This includes listing all available services and their respective status, starting, stopping, checking status, and restarting services. This is something that everyone who runs a Linux server or desktop needs to know, and while the title may sound intimidating it’s really quite simple.
In this guide I will be showing you how to install and enable the SAR utility/command on Linux servers. The SAR command can be used to look at performance history, and is really useful for identifying when CPU spikes occurred and more. And example of one of the outputs that SAR is capable of delivering is below.
Today I will be showing you how to use a basic expect script inside of your bash scripts for automation. Expect works just like the name sounds, expect to see a prompt or other piece of text and then send the response. With this you can do things such as automatically entering password for SSH (not recommended for daily use), automatically answer prompts, etc.