Linux Command - uname

uname - short for unix name, print system information. Note: use lsb_release for more info about the distribution.

Options

Option Description
-a print all information
-s print the kernel name
-n print network node hostname
-f print kernel release
-v print kernel version
-m print machine hardware name. same as arch command
-p print processor type or “unknown”
-i print the hardware platform or “unknown”
-o print the OS

Examples

1
uname

sample output

1
Linux

this is the same as hostname command

1
uname -n
1
uname -m

This is the same as arch command.

sample output

1
x86_64
1
uname -p

sample output

1
x86_64
1
uname -o

sample output

1
GNU/Linux

Reference