Linux Uname Command Tutorial With Examples To List Operating System, Kernel, Machine, Processor Architecture – POFTUT

Linux Uname Command Tutorial With Examples To List Operating System, Kernel, Machine, Processor Architecture

uname  command is simple tool which provides information about the kernel, machine, processor, and operating system. There are a lot of more complex and feature  applications that can provide more information but the simplicity makes uname best choose.

Syntax

We will use following syntax for uname command.

Help

Brief help can be displayed with the --help option.

Help

Help

Display Kernel Name

Kernel name is set by compiling kernel. Distributions generally provide their name in the kernel name or they set their original versioning convention. We can list kernel name with -s or --kernel-name option.

Display Kernel Name

Display Kernel Name

Display Host Name

We can display host name of the system with -n or --nodename options. The other name of the host name is node name.

Display Host Name

Display Host Name

Display Kernel Release

We can display kernel release information. This information may be useful while looking for security vulnerabilities or comp-ability options about application and kernel related tools. We will use -r or --kernel-release options.

Display Kernel Release

Display Kernel Release

Display Kernel Version

Kernel version provides information like when the kernel is compiled what distribution is is uses. We can display kernel version information with –v option.

Display Kernel Version

Display Kernel Version

Display Processor

There are a lot of different type of processors in the IT world. ARM, X86, X86_64, MIPS etc. Each processor architecture requires kernel compiled for its architecture to work. We can get kernel architecture and related processor type with -p or --processor options.

LEARN MORE  How To Mount VM Images with Guestmount?

Display Processor

Display Processor

Display Operating System

Operating system information can be listed with -o option.

Display Operating System

Display Operating System

Display All Information

Up to now we have listed and displayed related information part by part. We can print and display all information in a single line with a single option. We will use -a or --all option.

Display All Information

Display All Information

We can see that current system Linux Kernel version is 4.8 and operating system is Uubuntu.

Leave a Reply

Your email address will not be published. Required fields are marked *

Enjoy this blog? Please spread the word :)