GO KALI FREE
System Information

uname Linux Command

Prints system information such as kernel name, version, and architecture.

What does uname do?

Prints system information such as kernel name, version, and architecture.

Syntax

uname [options]

Practical example

uname -a

Questions about uname

What does uname -a show?

It shows all system information: kernel name, hostname, kernel release, kernel version, machine hardware, and processor type.

How do I check the kernel version?

Use `uname -r` to display just the kernel release version, like 5.15.0-kali3-amd64.

How do I check the system architecture?

Use `uname -m` to see the machine hardware name. It shows x86_64 for 64-bit or aarch64 for ARM64.

How do I see the kernel name?

Use `uname -s` to print just the kernel name, which is 'Linux' on Linux systems.

How do I see the full kernel version?

Use `uname -v` to display the kernel version including build date and compiler information.

How do I check if the system is 32-bit or 64-bit?

Use `uname -m`. If it shows x86_64 or amd64, it is 64-bit. If it shows i686 or i386, it is 32-bit.

How do I get all system info at once?

Use `uname -a` to display all available system information in a single line.

How do I check the hostname with uname?

Use `uname -n` to display the network hostname of the system.

Related System Information

unalias

Removes a previously defined command alias.

uptime

Shows how long the system has been running along with load averages.

alias

Creates or displays command aliases (shortcuts for longer commands).

hostnamectl

Displays and changes the system hostname and related settings.

clear

Clears the terminal screen.

lscpu

Displays detailed CPU architecture information.