Learning Rocky Linux
🌱
Seedling
TODO Prerequisite
Before we dive right in with the package manager and system configurations. It is in our best interest to first check that the installation is “correct”.
We simply do a quick check on the state of RAM and CPU on our new VM.
RAM check
To check RAM, we can do something like:
free --human --total --wide
free is a simple command that is the standard way for checking memory usage.
In this case, I utilise three flags to help make the output to be visually clearer for myself.
--humanmakes the output to be, well, more “human” readable--totalwill show the total of RAM + Swap--widesimply makes the output to be wider (for my screen), totally unnecessary.
CPU cores check
As for checking the CPU cores, we can use nproc. What nproc does is basically to check
for the information regarding CPU core numbers, listed in /proc/cpuinfo. It will output
a number which represents the amount of CPU cores that is present.
nproc