Cheatsheets
HomeWriteupsResourcesCheatsheets
Linux
Linux
  • Know Yourself and Your System
    • id
    • logname
    • uname
    • w
    • who
    • whoami
  • Surfing / Knowing Your File System
    • cd
    • df
    • du
    • ls
    • pwd
    • stat
    • tree
  • Knowing About Files / Commands
    • alias
    • file
    • info
    • whatis
    • apropos
    • man
    • help
    • history
    • script
  • Manipulating Files / Directories
    • touch
    • mkdir
    • rm
    • rmdir
    • cp
    • mv
    • ln
  • Interacting with Files
    • cat
    • head
    • less
    • middle
    • more
    • tail
  • STROPS / Text Manipulation
    • awk
    • cut
    • grep
    • jq
    • join
    • paste
    • sed
    • sort
    • tr
    • uniq
    • xargs
    • xclip
    • wc
    • tee
    • echo
    • comm
    • diff
    • patch
    • aspell
    • Combos
  • Formatting the Output
    • nl
    • fold
    • fmt
    • pr
    • printf
  • Searching / Finding
    • find
    • locate
    • which
    • whereis
    • type
  • Web Interaction
    • curl
    • wget
  • xxd
  • References
Powered by GitBook
On this page
  • Introduction
  • Syntax
  • Important Flags
  • Examples

Was this helpful?

  1. Know Yourself and Your System

uname

uname linux command cheatsheet by Thamizhiniyan C S

Introduction

This command is used to print system information.


Syntax

uname [OPTION]...


Important Flags

Flags
Description

-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

Command
Description

Prints all system information.

Prints the kernel name.

Prints the hostname of the network node.

Prints the kernel release date.

Prints the version of the current kernel.

Prints the machine hardware name.

Prints the type of processor.

Prints the platform of the hardware.

Prints the name of the operating system.

PreviouslognameNextw

Last updated 12 months ago

Was this helpful?

uname -a
uname -s
uname -n
uname -r
uname -v
uname -m
uname -p
uname -i
uname -o