A2oz

What is the Linux command for version information?

Published in Linux commands 1 min read

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.

Related Articles