i : print the hardware platform or "unknown". As you can see from below output, current machine hardware architecture is of 64-bit. If you want to check the current hardware architecture then you need to use uname -i command as shown below. Example 6: How to Print the Current Hardware Architecture As you can see from below output, current operating system is GNU/Linux. If you want to print current operating system then you need to use uname -o command as shown below. Example 5: How to Print the Current Operating System If you want to check complete information about Linux Kernel and machine architecture then you need to use uname -a command as shown below. Example 4: How to Display all the Linux Kernel Information As you can see from below output, current Kernel release version is 3.10.0-1127.10.1.el7.x86_64. If you want to check the kernel release then you need to use uname -r command as shown below. Example 3: How to Check the Kernel Release using uname command in Unix/Linux If you want to check kernel version in linux then you need to use uname -v command as shown below. Example 2: How to Check Kernel Version Using uname command in Unix/Linux version : output version information and exit. There is NO WARRANTY, to the extent permitted by law. This is free software: you are free to change and redistribute it. License GPLv3+: GNU GPL version 3 or later. ~]# uname -version uname (GNU coreutils) 8.22Ĭopyright (C) 2013 Free Software Foundation, Inc. As you can see from below output current uname version is 8.22. If you want to check uname command version then you need to use uname -version command as shown below. I will go through all the possible uses of uname command in Linux through various examples.Īlso Read: Solved: errors in crontab File, can't install - Unix & Linux(RHEL/CentOS 7/8) Example 1: How to Check uname command version You can also find the use of uname utility with the Bash Scripting where kernel version needs to be checked before running any functions. Usually this utility will be available by default with the Linux Based Systems so you don't have to install it separately. uname is an open source Linux based command line tool to check the basic information about OS, Kernel and hardware. In this tutorial, i will take you through 12 Popular Unix/Linux uname command examples and will also explain how to check kernel version using uname command. Example 12: How to Check man page of uname command.Example 11: How to Check all the Other Options of uname command.Example 10: How to Print the Kernel Name Using uname command.Example 9: How to Print the Current Processor type.Example 8: How to Print the Node Current Hostname.Example 7: How to Print the Current Hardware Machine Name.Example 6: How to Print the Current Hardware Architecture.Example 5: How to Print the Current Operating System.Example 4: How to Display all the Linux Kernel Information. Example 3: How to Check the Kernel Release using uname command in Unix/Linux.Example 2: How to Check Kernel Version Using uname command in Unix/Linux.Example 1: How to Check uname command version.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |