{"id":1869,"date":"2023-09-09T18:37:18","date_gmt":"2023-09-09T16:37:18","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=1869"},"modified":"2023-09-09T18:37:20","modified_gmt":"2023-09-09T16:37:20","slug":"lshw-hardware-informationen-am-linux-terminal","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/09\/lshw-hardware-informationen-am-linux-terminal\/","title":{"rendered":"lshw &#8211; Hardware-Informationen am Linux-Terminal"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Mit der Software &#8222;<em>lshw<\/em>&#8220; k\u00f6nnen Sie sich unter Linux am\u00a0Terminal\u00a0Informationen zur im Computer eingebauten \/ angeschlossenen Hardware anzeigen lassen.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">lshw installieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Unter auf Debian basierenden Linux-Distributionen installieren Sie diese Software wie \u00fcblich ganz einfach \u00fcber die\u00a0Paket-Verwaltung\u00a0durch das Paket &#8222;<strong>lshw<\/strong>&#8222;. Als grafische Oberfl\u00e4che findet sich unter Debian auch das Paket &#8222;<strong>lshw-gtk<\/strong>&#8222;.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">lshw nutzen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Sie nutzen diese Software mit\u00a0administrativen Rechten\u00a0am Terminal, beginnen wir ganz einfach:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lshw<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-1024x576.jpeg\" alt=\"\" class=\"wp-image-1870\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-1024x576.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-300x169.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-768x432.jpeg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-1536x864.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw.jpeg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Sie bekommen eine vollst\u00e4ndige Liste der eingebauten \/ angeschlossenen Hardware (<em>in Laptops sind unter anderem Webcams angeschossen und nicht eingebaut<\/em>) mit recht gro\u00dfz\u00fcgigen Informationen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mit der Option &#8222;<strong><code>-short<\/code><\/strong>&#8220; werden die Informationen etwas weniger, aber \u00fcbersichtlicher:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lshw -short<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-1-1024x576.jpeg\" alt=\"\" class=\"wp-image-1871\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-1-1024x576.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-1-300x169.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-1-768x432.jpeg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-1-1536x864.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-1.jpeg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Durch die Option &#8222;<strong><code>-businfo<\/code><\/strong>&#8220; erhalten Sie erweiterte Informationen zu den internen Hardware-Verbindungen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lshw -businfo<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-2-1024x576.jpeg\" alt=\"\" class=\"wp-image-1872\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-2-1024x576.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-2-300x169.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-2-768x432.jpeg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-2-1536x864.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-2.jpeg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u00dcber die Option &#8222;<strong><code>-class<\/code><\/strong>&#8220; begrenzen wir die Ausgabe auf gewisse Arten von Hardware &#8211; etwa auf Netzwerkger\u00e4te &#8222;<strong><code>network<\/code><\/strong>&#8222;:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lshw -class network<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-3-1024x576.jpeg\" alt=\"\" class=\"wp-image-1873\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-3-1024x576.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-3-300x169.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-3-768x432.jpeg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-3-1536x864.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-3.jpeg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Classen w\u00e4ren etwa: &#8222;<strong>system bus memory processor bridge generic network storage disk volume display multimedia input communication<\/strong>&#8222;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Jetzt k\u00f6nnen wir uns die Informationen nicht nur am Terminal ansehen, wir k\u00f6nnen die Infos auch in Dateien abspeichern: &#8222;<strong>-html<\/strong>&#8222;, &#8222;<strong>-xml<\/strong>&#8220; und &#8222;<strong>-json<\/strong>&#8220; &#8211; Beispiel:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lshw -html -class network &gt; dateiname.html<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-4-1024x576.jpeg\" alt=\"\" class=\"wp-image-1874\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-4-1024x576.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-4-300x169.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-4-768x432.jpeg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-4-1536x864.jpeg 1536w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/09\/lshw-4.jpeg 1920w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Mit der Option &#8222;<strong><code>-X<\/code><\/strong>&#8220; starten wir die grafische Oberfl\u00e4che &#8211; diese muss wie oben beschrieben nat\u00fcrlich installiert sein.<\/p>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"1869\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"1869\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Mit der Software &#8222;lshw&#8220; k\u00f6nnen Sie sich unter Linux am\u00a0Terminal\u00a0Informationen zur im Computer eingebauten \/ angeschlossenen Hardware anzeigen lassen. lshw installieren Unter auf Debian basierenden Linux-Distributionen installieren Sie diese Software wie \u00fcblich ganz einfach \u00fcber die\u00a0Paket-Verwaltung\u00a0durch das Paket &#8222;lshw&#8222;. Als grafische Oberfl\u00e4che findet sich unter Debian auch das Paket &#8222;lshw-gtk&#8222;. lshw nutzen Sie nutzen diese [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1874,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[15],"class_list":["post-1869","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-system","tag-system"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/1869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=1869"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/1869\/revisions"}],"predecessor-version":[{"id":1875,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/1869\/revisions\/1875"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/1874"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=1869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=1869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=1869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}