Uname is the major command to check the system information. This command can be used with many options.
Checking the architecture of the system or machine:
Using the “-m” option with uname command we can figure out the system architecture.
Command execution and sample output is given below,
Here, we have shown the command execution from root user but it can also be executed from the normal user.
Checking the type of Operating system:
Using “uname –s command” we will display the name of the OS.
Checking the kernel release of the system:
Using uname –r command we will check the release of the os.
Checking the system hostname information:
Using “uname –n” command we will check the hostname of the system.
Listing out all of the system information at once:
Uname –a is the command to check all the information of the system.
“uname” is the command with “-a” option is used to display kernel and processor information of the system.
From the above output:
Linux (first column) à represents the operating system
Sys1.ithonours.com(second column) à represents the hostname given.
3.10.0-12 3.el7.x86_64(third column) à kernel version
Later on, represents date & time and last options explain the processor architecture.
Let's assume, we have logged into a machine's terminal windows and want to check below details...