uname

uname linux command cheatsheet by Thamizhiniyan C S

Introduction

This command is used to print system information.


Syntax

uname [OPTION]...


Important Flags

FlagsDescription

-a, --all

print all information, in the following order, except omit -p and -i if unknown

-s, --kernel-name

print the kernel name

-n, --nodename

print the network node hostname

-r, --kernel-release

print the kernel release

-v, --kernel-version

print the kernel version

-m, --machine

print the machine hardware name

-p, --processor

print the processor type (non-portable)

-i, --hardware-platform

print the hardware platform (non-portable)

-o, --operating-system

print the operating system


Examples

CommandDescription
uname -a

Prints all system information.

uname -s

Prints the kernel name.

uname -n

Prints the hostname of the network node.

uname -r

Prints the kernel release date.

uname -v

Prints the version of the current kernel.

uname -m

Prints the machine hardware name.

uname -p

Prints the type of processor.

uname -i

Prints the platform of the hardware.

uname -o

Prints the name of the operating system.

Last updated