uname is a handy way to see certain attributes of a system, including hostname, processor architecture, kernel string, and more.

Show all relevant information about a system

  • uname -a

Show processor architecture

  • uname -m

Show kernel name or type (should always be Linux if run from a Linux machine)

  • uname -s

or

  • uname

Show kernel release or version string

  • uname -r