uname
Print system information
TLDR
Print kernel name
$ uname
Print all available system information
$ uname [[-a|--all]]
Print system architecture and processor information
$ uname [[-mp|--machine --processor]]
Print kernel name, kernel release, and kernel version
$ uname [[-srv|--kernel-name --kernel-release --kernel-version]]
Print system hostname
$ uname [[-n|--nodename]]
Print the current operating system name
$ uname [[-o|--operating-system]]
Display help
$ uname --help
SYNOPSIS
uname [options]
PARAMETERS
-a, --all
Print all information
-s, --kernel-name
Print kernel name
-n, --nodename
Print network node hostname
-r, --kernel-release
Print kernel release
-v, --kernel-version
Print kernel version
-m, --machine
Print hardware name
-p, --processor
Print processor type
-o, --operating-system
Print operating system
DESCRIPTION
uname prints system information including the operating system name, kernel version, hardware architecture, and hostname. It's commonly used in scripts to determine the system type and tailor behavior accordingly.
CAVEATS
Some options may not work on all systems. Output format is not standardized across Unix variants.
SEE ALSO
hostname(1), arch(1), lsb_release(1), hostnamectl(1)


