uname:tldr:40405
uname: Print kernel name.
$ uname
try on your machine
The uname
command is a shorthand for "UNIX name." It is a command-line utility used in Unix, Linux, and other similar operating systems to display certain system information.
When you run the uname
command without any options or arguments, it prints the name of the current operating system. This can be useful when you need to determine the specific version or variant of Unix or Linux that you are running.
Here are some common options that you can use with the uname
command:
-a
or--all
: Prints all available information about the system including the kernel name, network node hostname, kernel release, kernel version, machine hardware architecture, and the operating system.-s
or--kernel-name
: Prints only the kernel name.-n
or--nodename
: Prints only the network node hostname.-r
or--kernel-release
: Prints only the kernel release.-v
or--kernel-version
: Prints only the kernel version.-m
or--machine
: Prints only the machine hardware architecture.-o
or--operating-system
: Prints only the operating system.
By combining different options, you can display specific information about your system using the uname
command.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.