{"id":1870,"date":"2019-02-01T20:07:31","date_gmt":"2019-02-01T20:07:31","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/linux-command-reference\/hardware\/"},"modified":"2019-02-01T20:07:31","modified_gmt":"2019-02-01T20:07:31","slug":"hardware","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/linux-command-reference\/hardware\/","title":{"rendered":"Hardware"},"content":{"rendered":"<table>\n<tr>\n<th>Command<\/th>\n<th>Description<\/th>\n<\/tr>\n<tr>\n<td> dmesg                 <\/td>\n<td>Displays all the messages from Kernel ring buffer. With -k switch you can view kernel messages and with -u you can view userspace messages<\/td>\n<\/tr>\n<tr>\n<td> cat \/proc\/cpuinfo     <\/td>\n<td> Displays information about processes and CPUs of the system<\/td>\n<\/tr>\n<tr>\n<td> cat \/proc\/meminfo     <\/td>\n<td> Displays details on hardware memory<\/td>\n<\/tr>\n<tr>\n<td> cat \/proc\/interrupts  <\/td>\n<td> Lists the number of interrupts per CPU per I\/O device<\/td>\n<\/tr>\n<tr>\n<td> lshw                  <\/td>\n<td> Displays information on hardware configuration of the system. But this command must be run as super user or it will only report partial information<\/td>\n<\/tr>\n<tr>\n<td> lsblk                 <\/td>\n<td> Displays block device related information of the machine. With -a you can view all block devices<\/td>\n<\/tr>\n<tr>\n<td> free -m               <\/td>\n<td> Shows used and free memory (-m for MB)<\/td>\n<\/tr>\n<tr>\n<td> lspci -tv             <\/td>\n<td> Shows information on PCI buses devices<\/td>\n<\/tr>\n<tr>\n<td> lsusb -tv             <\/td>\n<td> Shows information on USB devices<\/td>\n<\/tr>\n<tr>\n<td> dmidecode             <\/td>\n<td> Shows hardware info from the BIOS (vendor details)<\/td>\n<\/tr>\n<tr>\n<td> hdparm -i \/dev\/sda    <\/td>\n<td> Shows info about disk sda<\/td>\n<\/tr>\n<tr>\n<td> badblocks -s \/dev\/sda <\/td>\n<td> Tests for unreadable blocks on disk sda<\/td>\n<\/tr>\n<tr>\n<td>   hdparm -tT \/dev\/sda   <\/td>\n<td> Performs a read speed test on disk sda<\/td>\n<\/tr>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>Command Description dmesg Displays all the messages from Kernel ring buffer. With -k switch you can view kernel messages and with -u you can view userspace messages cat \/proc\/cpuinfo Displays information about processes and CPUs of the system cat \/proc\/meminfo Displays details on hardware memory cat \/proc\/interrupts Lists the number of interrupts per CPU per [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1712,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1870","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=1870"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1870\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1712"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=1870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}