{"id":8837,"date":"2021-08-03T05:44:48","date_gmt":"2021-08-03T05:44:48","guid":{"rendered":"https:\/\/linuxways.net\/?p=8837"},"modified":"2021-08-03T05:45:07","modified_gmt":"2021-08-03T05:45:07","slug":"hwinfo-command-in-linux","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/centos\/hwinfo-command-in-linux\/","title":{"rendered":"Hwinfo Command in Linux"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>hwinfo (Hardware Information) is a very useful command to check details about hardware components. It shows information about most hardware units including CPU, RAM, graphic cards, USB controllers, \u2026<\/p>\n<p>hwinfo uses libhd library to gather hardware information on the system.<\/p>\n<p>This article will show you how to use the hwinfo command in Linux as we go through below.<\/p>\n<h2>Installing hwinfo in Linux<\/h2>\n<p>Run apt command:<\/p>\n<pre>$ sudo apt install hwinfo<\/pre>\n<h2>The syntax of hwinfo command<\/h2>\n<pre>$ hwinfo [options]<\/pre>\n<p><strong>[options]<\/strong><\/p>\n<p><strong>&#8211;help <\/strong>explains how to use<\/p>\n<p>$ hwinfo &#8211;help<\/p>\n<p>output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"939\" height=\"835\" class=\"wp-image-8838\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-769.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-769.png 939w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-769-300x267.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-769-768x683.png 768w\" sizes=\"auto, (max-width: 939px) 100vw, 939px\" \/><\/p>\n<p>run without<strong> [options] <\/strong>display information about all hardware units<\/p>\n<pre>$ hwinfo<\/pre>\n<p>output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"672\" class=\"wp-image-8839\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-770.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-770.png 940w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-770-300x214.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-770-768x549.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p>\n<p><strong>&#8211;short <\/strong> display summary information<\/p>\n<pre>$ hwinfo --short<\/pre>\n<p>output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"941\" height=\"808\" class=\"wp-image-8840\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-771.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-771.png 941w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-771-300x258.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-771-768x659.png 768w\" sizes=\"auto, (max-width: 941px) 100vw, 941px\" \/><\/p>\n<p><strong>&#8211;cpu <\/strong> display CPU information<\/p>\n<pre>$ hwinfo --short --cpu<\/pre>\n<p>output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"938\" height=\"227\" class=\"wp-image-8841\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-772.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-772.png 938w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-772-300x73.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-772-768x186.png 768w\" sizes=\"auto, (max-width: 938px) 100vw, 938px\" \/><\/p>\n<p>delete <strong>&#8211;short<\/strong> to display detailed information<\/p>\n<p><strong>&#8211;network <\/strong> display network interface information<\/p>\n<pre>$ hwinfo --network<\/pre>\n<p>output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"812\" class=\"wp-image-8842\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-773.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-773.png 940w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-773-300x259.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-773-768x663.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p>\n<p><strong>&#8211;netcard<\/strong> display network card information<\/p>\n<pre>$ hwinfo --netcard<\/pre>\n<p>output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"938\" height=\"492\" class=\"wp-image-8843\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-774.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-774.png 938w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-774-300x157.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-774-768x403.png 768w\" sizes=\"auto, (max-width: 938px) 100vw, 938px\" \/><\/p>\n<p><strong>&#8211;disk <\/strong>display disk information<\/p>\n<pre>$ hwinfo --disk<\/pre>\n<p>output: <img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"433\" class=\"wp-image-8844\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-775.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-775.png 940w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-775-300x138.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-775-768x354.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p>\n<p><strong>&#8211;usb <\/strong>display USB device controllers information<\/p>\n<pre>$ hwinfo --usb<\/pre>\n<p>output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"941\" height=\"126\" class=\"wp-image-8845\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-776.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-776.png 941w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-776-300x40.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-776-768x103.png 768w\" sizes=\"auto, (max-width: 941px) 100vw, 941px\" \/><\/p>\n<p><strong>&#8211;storage <\/strong> display hard drive controllers information<\/p>\n<pre>$ hwinfo --storage<\/pre>\n<p>output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"940\" height=\"132\" class=\"wp-image-8846\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-777.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-777.png 940w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-777-300x42.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-777-768x108.png 768w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/p>\n<h2>Display multiple devices together<\/h2>\n<p>To display information on multiple devices at the same time, just add all the <strong>options.<\/strong><\/p>\n<p>For example, I want to display information of USB device, network, disk:<\/p>\n<pre>$ hwinfo --usb --network --disk<\/pre>\n<p>output:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"941\" height=\"262\" class=\"wp-image-8847\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-778.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-778.png 941w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-778-300x84.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-778-768x214.png 768w\" sizes=\"auto, (max-width: 941px) 100vw, 941px\" \/><\/p>\n<h2>Export information to a file<\/h2>\n<p>If you want to export detailed information:<\/p>\n<pre>$ hwinfo --log hwinfo.txt<\/pre>\n<p>If you want to export summary information, add <strong>&#8211;short<\/strong> option:<\/p>\n<pre>$ hwinfo --short --log hwinfo.txt<\/pre>\n<h2>Conclusion<\/h2>\n<p>You\u2019ve already gone through the details of how to use the hwinfo command in Linux.<\/p>\n<p>Thanks for reading.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction hwinfo (Hardware Information) is a very useful command to check details about hardware components. It shows information about most hardware units including CPU, RAM, graphic cards, USB&hellip;<\/p>","protected":false},"author":1,"featured_media":8955,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,4,5,83,165,2],"tags":[456],"class_list":["post-8837","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-debian","category-mint","category-opensuse","category-red-hat","category-ubuntu","tag-hwinfo-command"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8837","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=8837"}],"version-history":[{"count":1,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8837\/revisions"}],"predecessor-version":[{"id":8954,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8837\/revisions\/8954"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/8955"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=8837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=8837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=8837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}