Linux provides commands that allow you to view system-related information, and with these commands, you can quickly get some necessary system information.
Machine Hardware Name
We can get the name of the machine’s hardware by the arch command:
1
arch # This is equivalent to uname -m
System Information
We can use the uname command plus some of the parameters it provides to get the system-related information:
All Information
1
uname -a # This is equivalent to uname --all
Hardware Platform
1
uname -i # This is equivalent to uname --hardware-platform
Hardware Name
1
uname -m # This is equivalent to uname --machine
Network Node Hostname
1
uname -n # This is equivalent to uname --nodename
Processor Type
1
uname -p # This is equivalent to uname --processor
Operating System
1
uname -o # This is equivalent to uname --operating-system
Kernel Release
1
uname -r # This is equivalent to uname --kernel-release
Kernel Name
1
uname -s # This is equivalent to uname --kernel-name
Kernel Version
1
uname -v # This is equivalent to uname --kernel-version
Available Processors
We can view the number of logical cpu cores available through the nproc command.
Current Process
1
nproc
Installed Processors
1
nproc --all
System Name
We can get the name of the current host through the hostname command:
1
hostname
Numeric Host Identifier
We can get the identifier of the current host through the hostid command:
1
hostid
System Uptime and Load
We can use the uptime command to get the system’s running time, the number of users logged in, the average load, and so on: