PDA

View Full Version : lspci - command not found



Vansolrick
27th April 2007, 09:03 AM
I cannot seem to get lspci to post. I have the man pages for it but no lspci. I'm running FC6 x86_64

Vansolrick
27th April 2007, 09:34 AM
nvm solved it. It's in sbin

leigh123linux
27th April 2007, 10:46 AM
nvm solved it. It's in sbin

You have to be su - to use lspci ( su wont do )


[leigh@localhost ~]$ lspci
bash: lspci: command not found
[leigh@localhost ~]$ su
Password:
[root@localhost leigh]# lspci
bash: lspci: command not found
[root@localhost leigh]# su -
[root@localhost ~]# lspci
00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)

Vansolrick
27th April 2007, 08:37 PM
You have to be su - to use lspci ( su wont do )

Ok thanks. Whats the difference between su and su -?

brunson
27th April 2007, 08:52 PM
man su

the minus makes it a login shell which executes root's login scripts and properly sets the path.

robatino
29th April 2007, 01:30 AM
You don't need to be root, /sbin/lspci works as an ordinary user. All that su - does in this case is to use root's default path which includes /sbin. Easier and safer to just type it instead.

Vansolrick
29th April 2007, 07:51 AM
Thanks :)