System Configuration
hostname: displays the name of the computer
It will show the current name of the machine.
To change the hostname, please type
hostnamectl set-hostname <new_name>
, and for additional configuration, the file is located at/etc/hostname
.dmidecode: gives information about the hardware and detects if it is a virtual machine
The information includes manufacturer, model, serial number, asset tags, CPU sockets, PCI slots, DIMM slots, and other I/O port info detected by the BIOS.
uname: displays system information about the Linux environment
It will show you the version of the Linux kernel you are running.
If you want to know the hardware platform, such as x86_64 or 32-bits, please run
uname -i
. If you need more details about the software, please rununame -a
.free: check the used and available space of physical memory and swap memory
It will display the size of the memory in GB (Gigabytes).
If you want to display the total line of the memory resource used, please run
free -t
or docat /proc/meminfo
.lscpu: shows CPU architecture information
It will show the vendor of the CPU, as well as the GHz, cores per socket, etc.
You can view the information of your system CPU by viewing the content of the
/proc/cpuinfo
.top: shows statistical data related to the performance of a system and is updated every 5 seconds
It will display a real-time view of the performance data of all running processes in a system.
To sort by the use of CPU, type
P
, or if you want to sort by the use of memory, please typeM
, andu
to view processes owned by a specific user. Pressq
to quit.iostat: lists CPU utilization, device utilization, and network file system utilization considered since the last reboot
It will display to columns: NAME and Comments in the
/tmp/data_tab.txt
file.It will break the CPU utilization into user processes, system processes, I/O wait, and idle time.
uptime: gives you the time for which the system has been up (or running)
It will display the current time, how long the system has been running, users currently logged on, and the system load averages for the past 1, 5, and 15 minutes.
Last updated