The uname
command provides version information about the Linux system.
Understanding uname
uname
stands for "Unix name," and it's a powerful command that retrieves various system-related information. To get the version information, simply use:
uname -r
This command will display the kernel version of your Linux system.
Additional Information
The uname
command offers more options to retrieve specific information, such as:
uname -s
: Prints the operating system name (usually "Linux").uname -n
: Shows the network node hostname.uname -m
: Displays the hardware architecture (e.g., x86_64).uname -o
: Outputs the operating system type (e.g., GNU/Linux).
Example
$ uname -r
5.15.0-58-generic
This example shows that the kernel version of the system is 5.15.0-58-generic
.