Quickly reveal kernel, architecture and node information from the shell. 21.05.2026 | reading time: 2 min Need to know which kernel and architecture a system runs? `uname` answers fast at the shell by exposing kernel name, release, version and hardware identity in a single tool. Quick demo Run the following commands to see typical output: ``` $ uname Linux $ uname -a Linux myhost 5.4.0-66-generic #74-Ubuntu SMP Thu Jan 28 15:34:46 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux ``` Practical switches Use `uname -s` for the kernel name, `uname -r` for the kernel release and `uname -m` for the machine hardware name; `-v` shows the kernel version and `-n` reveals the node name; note that `-p` and `-i` may return "unknown" on some systems, so prefer `-m`, `-s` and `-r` for portability. Use in scripts Make decisions in scripts by querying `uname`; for example: ``` if [ "$(uname -m)" = "x86_64" ]; then echo "Install 64-bit packages" else echo "Install 32-bit packages" fi ``` This is a simple and reliable way to branch on architecture or kernel family. Check distribution details `uname` tells about the kernel and hardware, not the distribution; pair it with distro-aware tools to get a full picture and to choose packages or modules correctly. Next steps Start using `uname` in troubleshooting and bootstrap scripts, then broaden knowledge to distribution tooling and kernel internals; consider pursuing CompTIA Linux+ or LPIC-1 and use bitsandbytes.academy for intensive exam preparation to turn these skills into certification. Join Bits & Bytes Academy First class LINUX exam preparation. utilities scripting boot-process