Friday, 25 September 2020

GNU Core Utility: uname

One of GNU core utility commands is uname. It is a handly tool that gives some useful information about the system.

GNU core utils
Image credit:


UNAME(1)                                                             User Commands                                                             UNAME(1)
       uname - print system information
       uname [OPTION]...
       Print certain system information.  With no OPTION, same as -s.
       -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
       --help display this help and exit
              output version information and exit
       Written by David MacKenzie.
       GNU coreutils online help: <>
       Report uname translation bugs to <>
       Copyright © 2017 Free Software Foundation, Inc.  License GPLv3+: GNU GPL version 3 or later <>.
       This is free software: you are free to change and redistribute it.  There is NO WARRANTY, to the extent permitted by law.
       arch(1), uname(2)
       Full documentation at: <>
       or available locally via: info '(coreutils) uname invocation'

To get the name of the kernel:

$ uname -s

To verify if you're running a 64-bit system use uname tool:

$ uname -m 

  • 64-bit Intel/AMD system: x86_64
  • 64-bit ARM architecture: aarch64

If you come across instructions about how to install docker-compose on Linux, you'll see an example how to use uname in a command which downloads a binary built for your system:

sudo curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

1 comment:

micheal pan said...

BE SMART AND BECOME RICH IN LESS THAN 3DAYS....It all depends on how fast 
you can be to get the new PROGRAMMED blank ATM card that is capable of
hacking into any ATM machine,anywhere in the world. I got to know about 
this BLANK ATM CARD when I was searching for job online about a month 
ago..It has really changed my life for good and now I can say I'm rich and 
I can never be poor again. The least money I get in a day with it is about 
$50,000.(fifty thousand USD) Every now and then I keeping pumping money 
into my account. Though is illegal,there is no risk of being caught 
,because it has been programmed in such a way that it is not traceable,it 
also has a technique that makes it impossible for the CCTVs to detect 
you..For details on how to get yours today, email the hackers on : ( ). Tell your 
loved once too, and start to live large. That's the simple testimony of how 
my life changed for good...Love you all ...the email address again is ;