Tag: bash
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, …
We can write a BASH Script to print out the current CPU frequency and temperature on Raspberry PI. #pi@raspberrypi:~ $ cat ./cpu_freq.sh #!/bin/bash temp=`head -n 1 /sys/class/thermal/thermal_zone0/temp | xargs …
December 9, 2020
algorithms, BASH, bash script, c / c++, c #, C/C++, C# (CSharp), java, Java, javascript, Node.Js, PHP, php, programming languages, Python, python, Rust, string, vbscript, VBScript
You are given a lowercase alphabet string text. Return a new string where every character in text is mapped to its reverse in the alphabet, so that a becomes …
IP Addresses consist of two kinds. The IPv4 and IPv6. The IPv4 is 32-bit that contains 4 bytes. For example, X.Y.Z.U where four digits (0 to 255) are separated …
Given a text file file.txt, transpose its content. You may assume that each row has the same number of columns and each field is separated by the ‘ ‘ …