Linux uname command Example | Linux get OS Info

Blogs ❯❯ Linux

Image could not load

Image on pixabay

Hello everyone , I hope अब सभी लोग अच्छे हैं इस blog में हम Linux की basic command uname के बारे में बात करेंगे। और मैं अशा करता हूँ कि आपको यह blog पसंद आएगा।

what is uname Command in Linux ?

Linux में uname command का use system information को print करने के लिए किया जाता है। इसकी कई commands होती हैं हालाँकि इसका basic syntax कुछ इस तरह का होता है -

uname [options]

हालाँकि अगर आप कोई option provide नहीं करते हैं तो Linux kernel name print होता है। For example -

$ uname
Linux

uname के सभी options देखने के लिए simply uname लिखकर दो बार TAB button press करने पर आपको सभी uname options दिख जायँगे -

$ uname --
--all                --help               --kernel-release     --machine            --operating-system   --version
--hardware-platform  --kernel-name        --kernel-version     --nodename           --processor

अब इन options को , one by one देखते हैं।

Linux uname --help

uname --help command का use uname के बाकी सभी available options को describe करती है।

$ uname --help
Usage: 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
      --version  output version information and exit

GNU coreutils online help: 
Report any translation bugs to 
Full documentation 
or available locally via: info '(coreutils) uname invocation'

Linux uname --kernel-name

uname --kernel-name command का use kernel name print करने के लिए किया जाता है , आप --kernel-name की जगह -s भी लिख सकते हैं।

$ uname --kernel-name
Linux
$ uname -s
Linux

Linux uname --nodename

uname --nodename command का use network node hostname को print करने के लिए किया जाता है , आप --nodename की जगह -n भी लिख सकते हैं।

Linux uname --kernel-version

uname --kernel-version command का use आपके current kernel version को print करने के लिए किया जाता है , आप --kernel-version की जगह -v भी लिख सकते हैं।

$ uname --kernel-version
#23-Ubuntu SMP Wed Aug 17 18:33:13 UTC 2022
$ uname -v
#23-Ubuntu SMP Wed Aug 17 18:33:13 UTC 2022

Linux uname --machine

uname --machine command का use आपके machine के hardware name को print करने के लिए किया जाता है , आप --machine की जगह -m भी लिख सकते हैं।

$ uname --machine
x86_64
$ uname -m
x86_64

Linux uname --processors

uname --processors command का use , current machine के processor type के name को print करने के लिए किया जाता है , आप --processors की जगह -p भी लिख सकते हैं।

$ uname --processor
x86_64
$ uname -p
x86_64

Linux uname --operating-system

uname --operating-system command का use current Operating System name को print करने के लिए किया जाता है , आप --operating-system की जगह -o भी लिख सकते हैं।

$ uname --operating-system
GNU/Linux
$ uname -o
GNU/Linux

Linux uname --all

Linux uname --all command का use , आपके system के सभी information को एक साथ print करता है। जो आपने अभी तक uanme के साथ बाकी options की help से अलग अलग print कराई थी। आप --all की जगह -a भी लिख सकते हैं।

$ uname --all
Linux ip-*-*-*-* *.*.*-*-aws #23-Ubuntu SMP Wed Aug 17 18:33:13 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
$ uname -a
Linux ip-*-*-*-* *.*.*-*-aws #23-Ubuntu SMP Wed Aug 17 18:33:13 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

I Hope, आपको Linux में uname command के बारे में अच्छे से समझ आ गया होगा।

Recent Blogs

Loading ...

Rahul Kumar

Rahul Kumar

Hi ! I'm Rahul Kumar Rajput founder of learnhindituts.com. I'm a software developer having more than 4 years of experience. I love to talk about programming as well as writing technical tutorials and blogs that can help to others. I'm here to help you navigate the coding cosmos and turn your ideas into reality, keep coding, keep learning :)

Get connected with me. :) LinkedIn Twitter Instagram Facebook