Linux Find Out CPU Architecture Information

You can find out the CPU architecture information on a Linux system using several methods. Here are a few: lscpu command: The lscpu command provides detailed information about the system’s CPU architecture. You can use it as follows: lscpu This will display information such as the architecture (e.g. x86_64), the number of CPUs, the number … Read more

Linux: What is Dash ( /bin/dash ) Shell?

dash (short for Debian Almquist shell) is a Unix shell that is commonly used as the default /bin/sh interpreter on many Linux distributions, including Debian, Ubuntu, and some others. It is designed to be a lightweight, fast, and POSIX-compliant alternative to the traditional bash shell. dash is a POSIX-compliant shell, which means that it adheres … Read more

How To Find Out RHEL 6 / CentOS 6 Kernel Version

You can find the kernel version of a Red Hat Enterprise Linux 6 (RHEL 6) or CentOS 6 system by using the uname command with the -r option. The -r option displays the kernel release number. Here’s an example: uname -r This will output the kernel version number, for example: 2.6.32-754.18.2.el6.x86_64 In this example, 2.6.32-754.18.2.el6.x86_64 … Read more

Bash C Style For Loop Example and Syntax

In Bash, you can use the for loop to execute a set of commands a specified number of times. The “C-style” syntax of a for loop in Bash looks like this: for ((expression1; expression2; expression3)) do commands done Here’s what each expression does: expression1: initializes the loop counter. This is executed only once at the … Read more

Linux /boot: Out of Disk Space While Installing Package kernel-2.6.32-131.2.1.el6.x86_64

If you’re encountering an “out of disk space” error while installing the package kernel-2.6.32-131.2.1.el6.x86_64 in Linux, it means that the /boot partition does not have enough free space to accommodate the new kernel image. This can be resolved by removing some old, unused kernel images from the /boot partition. Here’s how you can do this: … Read more