
When you try to execute lshw command, the output say something like " -bash: lshw: command not found "... This is because there is no lshw command on your Linux machine or you don't have the permission to execute the command... try su to root user, and try execute the command again... id it still give you " -bash: lshw: command not found " just install the lshw command as show on the example below... and please note that you may need root permission to install the lshw cammand or any other command on the system
Example of Linux lshw command error messages.
[root@jmtiproxy ~]# lshw
-bash: lshw: command not found
[root@jmtiproxy ~]#
Execute yum -y install lshw* command to start install lshw command.

[root@jmtiproxy ~]# yum -y install lshw*
Loaded plugins: presto, refresh-packagekit
fedora/metalink | 11 kB 00:00
updates/metalink | 6.4 kB 00:00
updates | 4.4 kB 00:04
updates/primary_db | 3.7 MB 03:25
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package lshw.x86_64 0:B.02.14-3.fc12 set to be updated
---> Package lshw-gui.x86_64 0:B.02.14-3.fc12 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
lshw x86_64 B.02.14-3.fc12 fedora 208 k
lshw-gui x86_64 B.02.14-3.fc12 fedora 284 k
Transaction Summary
================================================================================
Install 2 Package(s)
Upgrade 0 Package(s)
Total download size: 492 k
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 492 k
(1/2): lshw-B.02.14-3.fc12.x86_64.rpm | 208 kB 00:24
(2/2): lshw-gui-B.02.14-3.fc12.x86_64.rpm | 284 kB 01:13
--------------------------------------------------------------------------------
Total 4.7 kB/s | 492 kB 01:44
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB has been altered since the last yum transaction.
Installing : lshw-B.02.14-3.fc12.x86_64 1/2
Installing : lshw-gui-B.02.14-3.fc12.x86_64 2/2
Installed:
lshw.x86_64 0:B.02.14-3.fc12 lshw-gui.x86_64 0:B.02.14-3.fc12
Complete!
[root@jmtiproxy ~]#