{"id":18336,"date":"2022-09-05T12:07:03","date_gmt":"2022-09-05T12:07:03","guid":{"rendered":"https:\/\/linuxways.net\/?p=18336"},"modified":"2022-09-21T10:10:55","modified_gmt":"2022-09-21T10:10:55","slug":"linux-uname-command","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/linux-commands\/linux-uname-command\/","title":{"rendered":"Linux UNAME Command"},"content":{"rendered":"<p>\u201cUNAME is an extremely useful Linux command that provides you the information regarding your system&#8217;s hardware and software on the go. This command can provide you with a detailed report about these statistics as well as the information related to the individual entities depending upon the options used with this command. Therefore, in this article, we will use the UNAME command in Linux in different ways.\u201d<\/p>\n<h2><strong>Usage of the UNAME Command in Linux<\/strong><\/h2>\n<p>The UNAME command in Linux can be used for multiple purposes that you can get to know by running the following command:<\/p>\n<pre>\r\n$ uname --help\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"331\" height=\"25\" class=\"wp-image-18341\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-1.png 331w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-1-300x23.png 300w\" sizes=\"auto, (max-width: 331px) 100vw, 331px\" \/><\/strong><\/p>\n<p>This command will list down all the different purposes for which you can use the UNAME command in Linux, as shown in the image below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"631\" height=\"368\" class=\"wp-image-18343\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-2.png 631w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-2-300x175.png 300w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><\/p>\n<p>Now, you can go through the following examples to see the working of this command:<\/p>\n<h2><strong>Example # 1: Print All the System Information<\/strong><\/h2>\n<p>If you want to display all the system information on the terminal, then you need to use the UNAME command in the manner shown below:<\/p>\n<pre>\r\n$ uname \u2013a\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"305\" height=\"23\" class=\"wp-image-18344\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-3.png 305w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-3-300x23.png 300w\" sizes=\"auto, (max-width: 305px) 100vw, 305px\" \/><\/strong><\/p>\n<p>All the system information related to our Linux system is shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"646\" height=\"71\" class=\"wp-image-18346\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-4.png 646w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-4-300x33.png 300w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><\/p>\n<h2><strong>Example # 2: Print the Kernel Name Only<\/strong><\/h2>\n<p>Now, if you only want the Kernel name to be printed on the terminal, then you can run the command shown below:<\/p>\n<pre>\r\n$ uname \u2013s\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"302\" height=\"23\" class=\"wp-image-18349\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-5.png 302w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-5-300x23.png 300w\" sizes=\"auto, (max-width: 302px) 100vw, 302px\" \/><\/strong><\/p>\n<p>The Kernel name of our system is shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"302\" height=\"63\" class=\"wp-image-18351\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-6.png 302w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-6-300x63.png 300w\" sizes=\"auto, (max-width: 302px) 100vw, 302px\" \/><\/p>\n<h2><strong>Example # 3: Print the Network Node Hostname Only<\/strong><\/h2>\n<p>You can also use the UNAME command in Linux for printing the network node hostname in the manner shown below:<\/p>\n<pre>\r\n$ uname \u2013n\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"299\" height=\"26\" class=\"wp-image-18353\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-7.png\" \/><\/strong><\/p>\n<p>The network node hostname of our Linux system is shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"295\" height=\"57\" class=\"wp-image-18357\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-8.png\" \/><\/p>\n<h2><strong>Example # 4: Print the Kernel Release Only<\/strong><\/h2>\n<p>The UNAME command can also be used for printing the Kernel release on the terminal by running it as shown below:<\/p>\n<pre>\r\n$ uname \u2013r\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"23\" class=\"wp-image-18360\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-9.png\" \/><\/strong><\/p>\n<p>The Kernel release of our system is shown in the image that follows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"305\" height=\"56\" class=\"wp-image-18366\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-10.png 305w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-10-300x55.png 300w\" sizes=\"auto, (max-width: 305px) 100vw, 305px\" \/><\/p>\n<h2><strong>Example # 5: Print the Kernel Version Only<\/strong><\/h2>\n<p>If you just want to print the Kernel version on the terminal, then you can execute the UNAME command as shown below:<\/p>\n<pre>\r\n$ uname \u2013v\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"298\" height=\"23\" class=\"wp-image-18371\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-11.png\" \/><\/strong><\/p>\n<p>The Kernel version of our system is shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"374\" height=\"57\" class=\"wp-image-18377\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-12.png 374w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-12-300x46.png 300w\" sizes=\"auto, (max-width: 374px) 100vw, 374px\" \/><\/p>\n<h2><strong>Example # 6: Print the Machine Hardware Name Only<\/strong><\/h2>\n<p>To print the machine hardware name on the terminal, you can run the UNAME command as shown below:<\/p>\n<pre>\r\n$ uname \u2013m\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"296\" height=\"21\" class=\"wp-image-18381\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-13.png\" \/><\/strong><\/p>\n<p>The machine hardware name of our Linux system is displayed in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"330\" height=\"63\" class=\"wp-image-18384\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-14.png 330w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-14-300x57.png 300w\" sizes=\"auto, (max-width: 330px) 100vw, 330px\" \/><\/p>\n<h2><strong>Example # 7: Print Processor Type Only<\/strong><\/h2>\n<p>The UNAME command can even be used for printing the processor type on the terminal, as shown below:<\/p>\n<pre>\r\n$ uname \u2013p\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"299\" height=\"27\" class=\"wp-image-18386\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-15.png\" \/><\/strong><\/p>\n<p>The processor type of our Linux system is shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"303\" height=\"60\" class=\"wp-image-18387\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-16.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-16.png 303w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-16-300x59.png 300w\" sizes=\"auto, (max-width: 303px) 100vw, 303px\" \/><\/p>\n<h2><strong>Example # 8: Print the Hardware Platform Only<\/strong><\/h2>\n<p>To use the UNAME command to print the hardware platform on the terminal, you can execute it as shown below:<\/p>\n<pre>\r\n$ uname \u2013i\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"299\" height=\"24\" class=\"wp-image-18389\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-17.png\" \/><\/strong><\/p>\n<p>The hardware platform information of our system is shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"304\" height=\"65\" class=\"wp-image-18391\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-18.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-18.png 304w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-18-300x64.png 300w\" sizes=\"auto, (max-width: 304px) 100vw, 304px\" \/><\/p>\n<h2><strong>Example # 9: Print the Operating System Only<\/strong><\/h2>\n<p>Finally, you can also use the UNAME command in Linux for printing the operating system information on the terminal in the manner shown below:<\/p>\n<pre>\r\n$ uname \u2013o\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"298\" height=\"24\" class=\"wp-image-18394\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-19.png\" \/><\/strong><\/p>\n<p>The operating system of our machine is shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"315\" height=\"62\" class=\"wp-image-18395\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-20.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-20.png 315w, https:\/\/linuxways.net\/wp-content\/uploads\/2022\/08\/word-image-18336-20-300x59.png 300w\" sizes=\"auto, (max-width: 315px) 100vw, 315px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>This article was crafted to discuss the different usage scenarios of the UNAME command in Linux. After introducing you to this command, we shared with you all the different options that can be used with this command so that you can effectively use this command for your intended purpose.<\/p>","protected":false},"excerpt":{"rendered":"<p>UNAME is an extremely useful Linux command that provides you the information regarding your system&#8217;s hardware and software on the go.<\/p>","protected":false},"author":3,"featured_media":18433,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1049],"tags":[],"class_list":["post-18336","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-commands"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/18336","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=18336"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/18336\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/18433"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=18336"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=18336"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=18336"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}