Bash: lshw: command not found

Booting, installing, newbie
Post Reply
Message
Author
RoyBell
Posts: 50
Joined: Tue 07 Feb 2012, 06:23
Location: Leeds UK

Bash: lshw: command not found

#1 Post by RoyBell »

Can anyone tell me why the command ''lshw'' gives the error "command not found"

Puppy 5.2
When I was young I knew everything.
Now I'm old I know nothing but I'm much wiser.
User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#2 Post by Karl Godt »

«Give me GUI or Death» -- I give you [[Xx]term[inal]] [[Cc]on[s][ole]] .
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal :P
RoyBell
Posts: 50
Joined: Tue 07 Feb 2012, 06:23
Location: Leeds UK

#3 Post by RoyBell »

I was told in a previous posting:
http://murga-linux.com/puppy/viewtopic.php?t=85051
That a complete Bash was available in Puppy.
Although this was for version 5.3 on a different computer.
When I was young I knew everything.
Now I'm old I know nothing but I'm much wiser.
User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#4 Post by Karl Godt »

lshw is no bash internal function. It is an external "3rd party software" , that "can" be invoked using bash .
RoyBell
Posts: 50
Joined: Tue 07 Feb 2012, 06:23
Location: Leeds UK

#5 Post by RoyBell »

Hi Karl,

Thanks for the information.
I usually use Mint whilst trying to learn more about the command line.
Using Puppy seems to cause confusion because of the things that are not available. This is understandable due to the aims of Puppy.

Is there a way to replicate all the available commands of a full distro within Puppy?
When I was young I knew everything.
Now I'm old I know nothing but I'm much wiser.
User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#6 Post by Karl Godt »

bash-3.00#

Code: Select all

 echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R7/bin:/usr/X11R7/sbin:/root/my-applications/bin:/root/my-applications/sbin:/usr/i486-t2-linux-gnu:/var/bin:/var/sbin:/usr/local/bin/i686-pc-linux-gnu:/opt/samba/bin:/opt/qt-3.3.8b-mt/bin
bash-3.00#

That what is in the PATH variable are the available commands , invoked by the short simple cmd-name ie abiword . PATH is set in /etc/profile .

If you put something into f.ex. /root/TEST/bin , then you need to invoke it with the full /path/to/executable
ie /root/TEST/bin/abiword .

Full commands are available in different modes :
1.) Underdog mode -> very special running Puppy. Have not done it yet.
2.) use the chroot command to

Code: Select all

chroot /mnt/home
if you are running frugal.
User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#7 Post by Flash »

Also, to see a list of all the commands in Puppy:
  • 1. Open a console by clicking the icon on the desktop.
    2. Maximize it so it fills the desktop.
    3. Click the Tab key twice, then the Y key. After that, the Enter key will keep adding more until they're all listed in the console window. Then you can scroll up or down to search for the one you want.
Unfortunately this is just a list of the commands that will run in Puppy. It does not tell you what each command does, or even hint at a way to find out. :( It would be nice if each command in the list was a link to its man page.
RoyBell
Posts: 50
Joined: Tue 07 Feb 2012, 06:23
Location: Leeds UK

#8 Post by RoyBell »

Hi Karl,

Was this post meant for this problem.
I can't understand what it means.

Perhaps I'm missing something.

Hi Flash,

Thanks for the information.

............................................=................................................


I think I'll just carry on using Mint for my command line learning.
Puppy is very good and I'll still use it but It can't be all things to all users.
If it tried it would not be Puppy anymore and that would be a bad move.

Thanks to all.
When I was young I knew everything.
Now I'm old I know nothing but I'm much wiser.
Post Reply