

{"id":111934,"date":"2023-02-13T09:00:01","date_gmt":"2023-02-13T03:30:01","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=111934"},"modified":"2023-02-13T09:46:02","modified_gmt":"2023-02-13T04:16:02","slug":"lshw-command-in-linux","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/","title":{"rendered":"lshw command in Linux with Examples"},"content":{"rendered":"<p>In this article, we will learn everything about the lshw command in Linux. We will look at the lshw command, why it is used, how to install it, the syntax of the lshw command, and the options used along with it.<\/p>\n<p>At last, we will also look at some amazing practical examples of the lshw command by pairing it with various options to understand its working. So pay attention, take notes, and read to the end for the best benefits.<\/p>\n<h3>What is the lshw command in linux?<\/h3>\n<p>Lshw is the abbreviation for lost hardware. The Lshw command is a command-line-based utility in Linux-based operating systems providing detailed information on the system&#8217;s hardware configuration from various files in the \/proc directory in your system.<\/p>\n<p>The lshw command can also report the exact memory configuration, firmware version, mainboard configuration, CPU version and speed, cache memory configuration, bus speed, and many more.<\/p>\n<p>The lshw command can print all the information mentioned above on a DMI-capable x86 or IA-64(Itanium family of 64 microprocessors) system and some PowerPC machines. In a nutshell, the lshw is a small command that gives you a complete picture of your hardware configuration.<\/p>\n<p>One thing that you must note while using the lshw command is that you must either be the root user or have elevated privileges (sudo command). If you don&#8217;t have proper permissions, the lshw command prints only half the information, it would typically print.<\/p>\n<h3>Syntax of linux lshw command<\/h3>\n<p>The simple syntax of the lshw command is shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw &lt;format&gt; &lt;options&gt;<\/pre>\n<p>Let us take a look at the fields present in the syntax of the lshw command:<\/p>\n<p><strong>&lt;options&gt;<\/strong><\/p>\n<p>This field takes in a variety of options that specify how the zip command should function, format, and print the output. You can also specify multiple options in this field.<\/p>\n<p><strong>&lt;format&gt;<\/strong><\/p>\n<p>This field specifies the format in which the lshw must print the output. You can specify any of the following four format specifiers in this field.<\/p>\n<p><strong>1. -html<\/strong>: Output hardware tree as HTML.<br \/>\n<strong>2. -xml:<\/strong> Output hardware tree as XML.<br \/>\n<strong>3. -short:<\/strong> Output hardware paths.<br \/>\n<strong>4. -businfo<\/strong>: Output bus information.<br \/>\n<strong>5. -json:<\/strong> Output device tree as a JSON object.<\/p>\n<h3>Options used with linux lshw command<\/h3>\n<p>The lshw command has only a couple of options. Here are some of the most used ones in this section, and cover the remaining on the fly as we look at some examples in the subsequent section.<\/p>\n<p><strong>1. -enable<\/strong><\/p>\n<p>This option enables different parameters of the system. It is the complete opposite of the &#8220;&#8211;disable&#8221; command.<\/p>\n<p><strong>2. -disable<\/strong><\/p>\n<p>This option disables various parameters of the system. It is the complete opposite of the &#8220;&#8211;enable&#8221; command.<\/p>\n<p><strong>3. &#8211;help<\/strong><\/p>\n<p>This option prints the help menu of the lshw command, as shown below:<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/help-menu-of-the-lshw-command.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112096\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/help-menu-of-the-lshw-command.webp\" alt=\"help menu of the lshw command\" width=\"1070\" height=\"393\" \/><\/a><\/p>\n<p><strong>4. -numeric<\/strong><\/p>\n<p>This option displays and prints out numeric ID&#8217;s for fields like PCB, USB, and more.<\/p>\n<p><strong>5. -sanitize<\/strong><\/p>\n<p>This option prints the output without any sensitive information. If you want to print the information of your system&#8217;s hardware configuration without displaying any private and sensitive information, use the lshw command along with the &#8220;&#8211;sanitize&#8221; option.<\/p>\n<p><strong>6. -c<\/strong><\/p>\n<p>This option displays only the class of hardware you specified.<\/p>\n<p><strong>7. -quite<\/strong><\/p>\n<p>This option hides the display status.<\/p>\n<p><strong>8. -notime<\/strong><\/p>\n<p>This option excludes volatile attributes from the output.<\/p>\n<p>Now, let us look at some Practical examples of the lshw command in the terminal of Ubuntu 20.04.<\/p>\n<h3>Displaying full hardware information<\/h3>\n<p>To display complete hardware information of your computer, use the lshw command with no options and format specifiers.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-full-hardware-information.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112097\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-full-hardware-information.webp\" alt=\"displaying full hardware information\" width=\"1229\" height=\"616\" \/><\/a><\/p>\n<h3>Displaying information in HTML format<\/h3>\n<p>To change the format of the output and print it in HTML format, use the lshw command followed by the format specifiers &#8220;-html&#8221; as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw -html<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-information-in-html-format.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112098\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-information-in-html-format.webp\" alt=\"displaying information in html format\" width=\"1235\" height=\"614\" \/><\/a><\/p>\n<h3>Displaying information in XML format<\/h3>\n<p>To change the output format and print it in XML format, use the lshw command followed by the format specifiers &#8220;-xml&#8221; as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw -xml<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-information-in-xml-format.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112099\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-information-in-xml-format.webp\" alt=\"displaying information in xml format\" width=\"1073\" height=\"614\" \/><\/a><\/p>\n<h3>Displaying information in JSON format<\/h3>\n<p>To change the output format and print it in JSON format, use the lshw command followed by the format specifiers &#8220;-json&#8221; as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw -json<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-information-in-json-format.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112100\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-information-in-json-format.webp\" alt=\"displaying information in json format\" width=\"1073\" height=\"612\" \/><\/a><\/p>\n<h3>Displaying hardware paths<\/h3>\n<p>If you want to display the paths of the hardware, run the lshw command by combining it with the format specifier &#8220;-short&#8221; as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw -short<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-hardware-paths.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112101\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-hardware-paths.webp\" alt=\"displaying hardware paths\" width=\"1073\" height=\"442\" \/><\/a><\/p>\n<h3>Displaying bus information<\/h3>\n<p>If you want to display the bus information that gives more details on the sections SCSI, USB, IDE, and PCI addresses, run the lshw command by combining it with the format specifier &#8220;-businfo&#8221; as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw -businfo<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-bus-information.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112102\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-bus-information.webp\" alt=\"displaying bus information\" width=\"1073\" height=\"430\" \/><\/a><\/p>\n<h3>Displaying a specific class of hardware<\/h3>\n<p>If you want to display a specific class of hardware, execute the lshw command by pairing it with the option &#8220;-c&#8221; followed by the class of hardware on which you want to see the information.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-a-specific-class-of-hardware.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112103\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-a-specific-class-of-hardware.webp\" alt=\"displaying a specific class of hardware\" width=\"1073\" height=\"259\" \/><\/a><\/p>\n<h3>Showing system information<\/h3>\n<p>If you want to print the system information, couple the lshw command with the option &#8220;-class&#8221; followed by the &#8220;system&#8221; class of hardware as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw -class system<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/showing-system-information.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112104\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/showing-system-information.webp\" alt=\"showing system information\" width=\"1073\" height=\"202\" \/><\/a><\/p>\n<h3>Showing display information<\/h3>\n<p>To display the system information, couple the lshw command with the option &#8220;-class&#8221; followed by the &#8220;display&#8221; class of hardware as shown below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw -class display<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/showing-display-information.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112105\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/showing-display-information.webp\" alt=\"showing display information\" width=\"1074\" height=\"216\" \/><\/a><\/p>\n<h3>Showing network information<\/h3>\n<p>To display the network information, couple the lshw command with the option &#8220;-class&#8221; followed by the &#8220;network&#8221; class of hardware as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw -class network<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/showing-network-information.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112106\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/showing-network-information.webp\" alt=\"showing network information\" width=\"1003\" height=\"228\" \/><\/a><\/p>\n<h3>Showing storage information<\/h3>\n<p>To display the storage information, couple the lshw command with the option &#8220;-class&#8221; followed by the &#8220;storage&#8221; class of hardware as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw -class storage<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/showing-storage-information.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112107\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/showing-storage-information.webp\" alt=\"showing storage information\" width=\"812\" height=\"309\" \/><\/a><\/p>\n<h3>Showing disk information<\/h3>\n<p>To display the disk information, couple the lshw command with the option &#8220;-class&#8221; followed by the &#8220;disk&#8221; class of hardware as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw -class disk<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/showing-disk-information.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112108\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/showing-disk-information.webp\" alt=\"showing disk information\" width=\"597\" height=\"221\" \/><\/a><\/p>\n<h3>Showing processor information<\/h3>\n<p>To display the processor information, couple the lshw command with the option &#8220;-class&#8221; followed by the &#8220;processor&#8221; class of hardware as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw -class processor<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/showing-processor-information.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112109\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/showing-processor-information.webp\" alt=\"showing processor information\" width=\"599\" height=\"105\" \/><\/a><\/p>\n<h3>Showing motherboard information<\/h3>\n<p>To display the motherboard information, couple the lshw command with the option &#8220;-class&#8221; followed by the &#8220;bus&#8221; class of hardware as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw -class bus<\/pre>\n<h3>Saving output in a different file<\/h3>\n<p>We can save the output of the lshw command in a separate file by making use of the redirection operator as shown in the syntax below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw &gt; &lt;filename&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/saving-output-in-a-different-file.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112110\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/saving-output-in-a-different-file.webp\" alt=\"saving output in a different file\" width=\"1235\" height=\"604\" \/><\/a><\/p>\n<h3>Enabling system hardware components<\/h3>\n<p>Pairing the lshw command with the option &#8220;&#8211;enable&#8221; lets us enable various system parameters. These parameters include dmi, Device-tree, Spd, Memory, cpuinfo, cpuid, pci, isapnp, pcmcia, ide, usb, scsi, and network.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/enabling-system-hardware-components.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112111\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/enabling-system-hardware-components.webp\" alt=\"enabling system hardware components\" width=\"1235\" height=\"610\" \/><\/a><\/p>\n<h3>Disabling system hardware components<\/h3>\n<p>Just like enabling, disabling is also extremely easy. All you have to do is replace the option &#8220;-enable&#8221; with &#8220;-disable,&#8221; as shown in the syntax below:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw -disable &lt;component&gt;<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/disabling-system-hardware-components.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112112\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/disabling-system-hardware-components.webp\" alt=\"disabling system hardware components\" width=\"1229\" height=\"615\" \/><\/a><\/p>\n<h3>Hiding display status<\/h3>\n<p><span style=\"font-weight: 400\">If you don&#8217;t want the status displayed in the output, run the lshw command along with the option &#8220;-quiet&#8221; as shown:<\/span><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw -quiet<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/hiding-display-status.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112113\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/hiding-display-status.webp\" alt=\"hiding display status\" width=\"1232\" height=\"607\" \/><\/a><\/p>\n<h3>Hiding sensitive information<\/h3>\n<p>As we saw above, to hide sensitive or private information like IP addresses, serial numbers, etc., use the option &#8220;-sanitize&#8221; as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw -sanitize<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/hiding-sensitive-information.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112114\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/hiding-sensitive-information.webp\" alt=\"hiding sensitive information\" width=\"1227\" height=\"612\" \/><\/a><\/p>\n<h3>Displaying numeric IDs<\/h3>\n<p>If you want to display numeric IDs for the fields PCI and USB devices, use the option &#8220;-numeric&#8221; as shown:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">lshw -numeric<\/pre>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-numeric-ids.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-112115\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/displaying-numeric-ids.webp\" alt=\"displaying numeric ids\" width=\"1235\" height=\"615\" \/><\/a><\/p>\n<h3>Conclusion<\/h3>\n<p>As you have seen, the lshw command is a tool that gives you every single detail of your hardware configuration. You have now understood what the lshw command is, learned its use, the syntax of the lshw command, and the options used with it. We have also looked at 20 beautiful examples by combining the lshw with its various options and format specifiers.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will learn everything about the lshw command in Linux. We will look at the lshw command, why it is used, how to install it, the syntax of the lshw command,&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":112015,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[35],"tags":[27225],"class_list":["post-111934","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-lshw-command-in-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>lshw command in Linux with Examples - DataFlair<\/title>\n<meta name=\"description\" content=\"lshw command in linux gives you every single detail of your hardware configuration. See its use, syntax and the options used with it.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"lshw command in Linux with Examples - DataFlair\" \/>\n<meta property=\"og:description\" content=\"lshw command in linux gives you every single detail of your hardware configuration. See its use, syntax and the options used with it.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-13T03:30:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-13T04:16:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/lshw-command-in-linux.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"lshw command in Linux with Examples - DataFlair","description":"lshw command in linux gives you every single detail of your hardware configuration. See its use, syntax and the options used with it.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"lshw command in Linux with Examples - DataFlair","og_description":"lshw command in linux gives you every single detail of your hardware configuration. See its use, syntax and the options used with it.","og_url":"https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2023-02-13T03:30:01+00:00","article_modified_time":"2023-02-13T04:16:02+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/lshw-command-in-linux.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"lshw command in Linux with Examples","datePublished":"2023-02-13T03:30:01+00:00","dateModified":"2023-02-13T04:16:02+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/"},"wordCount":1185,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/lshw-command-in-linux.webp","keywords":["lshw command in Linux"],"articleSection":["Linux Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/","url":"https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/","name":"lshw command in Linux with Examples - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/lshw-command-in-linux.webp","datePublished":"2023-02-13T03:30:01+00:00","dateModified":"2023-02-13T04:16:02+00:00","description":"lshw command in linux gives you every single detail of your hardware configuration. See its use, syntax and the options used with it.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/lshw-command-in-linux.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2023\/02\/lshw-command-in-linux.webp","width":1200,"height":628,"caption":"lshw command in linux"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/lshw-command-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"Linux Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/linux\/"},{"@type":"ListItem","position":3,"name":"lshw command in Linux with Examples"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111934","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=111934"}],"version-history":[{"count":4,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111934\/revisions"}],"predecessor-version":[{"id":112116,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/111934\/revisions\/112116"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/112015"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=111934"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=111934"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=111934"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}