Gathering and aggregating system information
In this section, we are going to discuss the dmidecode
Linux tool, which will gather information about the system such as CPU information, server, memory, and networking.
Getting ready
Besides having a terminal open, we need to remember a few concepts:
- We are going to use some commands that will give us information about the Kernel, Linux distribution, physical server information, system uptime, network information, memory information, and CPU information.
- By using this, anyone can create scripts to gather system information.
How to do it...
- We can get details about the Linux distribution that you are working on. These distributions have a release file that you can locate in the
/etc/
folder. Now, open a terminal and enter the following command to get the information regarding the Linux distribution you are working on:
cat /etc/*-release
- The preceding option has an alternative, and the alternative is the version file that's present in the
/proc
folder...