Category: linux
In Linux, we have service process controller which can be used to start, stop and restart a particular registered service. For example: $ sudo service mysql stop $ sudo …
The following BASH script uses the ping command and computes the average PING to a domain via awk text processing. #!/bin/bash if ]; then echo Usage: $0 domain exit …
I have quite a few servers, and deploying same files/folders to them is a problem. Then I come up with the following BASH script where I can just run …
April 24, 2021
awk, AWK, AWK programming, BASH, bash script, BASH Shell, batch script, linux, Shell Scripts, ubuntu
Disk high usage are one of the common cause of server down. Some administrators would create a 8GB empty file, and once the disk usage is exceeding a threshold, …
At Linux, sometimes we want to search all the processes that contain some name and then terminate all of them. We can use “ps augx” to list all processes …