On Thu, Nov 13, 2008 at 7:05 PM, Dan Wallis <[EMAIL PROTECTED]> wrote:
> On 12/11/2008, Volker Armin Hemmann
> <[EMAIL PROTECTED]> wrote:
>> as root: lspci
>
> Why as root? I get exactly the same output when I run it as my own
> user as when I run it as root. Or have I got my system set up
> different to everyone else?
$ lspci
bash: lspci: command not found
echo ${PATH}
/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/opt/sun-jre-bin-1.5.0.06/bin:/opt/sun-jre-bin-1.5.0.06/javaws:/usr/games/bin
At least in my system, the lspci binary resides in /usr/sbin, which is
not in ${PATH}
So you should either call lspci as root or issue the explicit command
/usr/sbin/lspci

That said, if you want to use the -v flag of lspci (for extra
verbosity), you should be root, or you will see some fields filled
with <access denied>

-- 
Software is like sex: it is better when it is free - Linus Torvalds

Reply via email to