Ubuntu Check RAM Memory Chip Speed and Specification From Within a Linux System

To check the speed and specification of the RAM memory chips on an Ubuntu system, you can use the dmidecode command. The dmidecode tool provides access to the system’s DMI (Desktop Management Interface) table, which contains information about the system’s hardware components, including the RAM. Here’s an example of how to check the speed and … Read more

How to find out CPU information on CentOS Linux 7.x/8.x/Stream

To find out the CPU information on CentOS 7.x/8.x/Stream, you can use the following commands: lscpu: This command provides detailed information about the CPU architecture and the number of processors, cores, and threads. $ lscpu cat /proc/cpuinfo: This command displays information about the individual processors, including their clock speed, cache size, and architecture. $ cat … Read more

Bash Shell: Extract Digits From a String

If you want to extract digits from a string in bash, you can use the following methods: Using grep: string=”abc123def456″ digits=$(echo $string | grep -o ‘[0-9]\+’) echo $digits Output: 123456 Using sed: string=”abc123def456″ digits=$(echo $string | sed ‘s/[^0-9]*//g’) echo $digits Output: 123456 Using awk: string=”abc123def456″ digits=$(echo $string | awk ‘/[0-9]+/{ gsub(/[^0-9]+/, “”, $0); print $0 … Read more

Debian / Ubuntu Linux Disable / Remove All NFS Services

To disable or remove all NFS services on Debian/Ubuntu Linux, you can use the following steps: Stop the NFS server service: sudo service nfs-kernel-server stop Disable the NFS server service from starting automatically during boot: sudo update-rc.d nfs-kernel-server disable Uninstall the NFS server packages: sudo apt-get remove nfs-kernel-server Repeat the above steps for any other … Read more