uname — kernel and system information
cheat sheet · Ubuntu 24.04; GNU coreutils 9.4 https://lab.dimsanych.ru/en/wiki/uname/Cheat sheet
-
uname -skernel name -
uname -rkernel release -
uname -vbuild information -
uname -mmachine name -
uname -nnode name -
uname -acombined output
Options
Select an individual option when you need one fact. The -a summary is readable, but splitting it on spaces is not a reliable parser: values may contain spaces, and unknown -p and -i fields are omitted.
The -p and -i options are non-portable. An unknown value indicates missing information, not a failed processor. Start with -m when checking the machine architecture.