Category: Shell Scripts
The parameters can be passed as command line to the shell scripts as $1, $2 etc. However, if there are many parameters, passing via command line is not ideal …
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, …
If you have a VPS or dedicate server, you can issue the following command to let your server restarts (as root user): sudo shutdown -r now If you issue …
How would you print just the 10th line of a file? For example, assume that file.txt has the following content: Line 1 Line 2 Line 3 Line 4 Line …
My VPS is running at Ubuntu Linux. The Apache2 Server is serving 6 websites. If, on errors (e.g. out-of-memory), the websites are down until the apache2 server is restarted …