System Configuration

  hostname

It will show the current name of the machine.

To change the hostname, type hostnamectl set-hostname <new_name>, and for additional configuration, the file is located at /etc/hostname.

  dmidecode

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 -v

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, run uname -i. If you need more details about the software, run uname -a.

  free -g

It will display the size of the memory in GB (Gigabytes).

If you want to display the total line of the memory resource used, run free -t or do cat /proc/meminfo.

  lscpu

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

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, type M, and u to view processes owned by a specific user. Press q to quit.

  iostat -C

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

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.