LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices

Reply
 
Search this Thread
Old 01-13-2006, 10:16 AM   #1
lnthai2002
Member
 
Registered: Jan 2005
Location: Montreal, QC, CANADA
Distribution: Red Hat Fedora
Posts: 135

Rep: Reputation: 15
why don't i have lsdev and lsscsi in centOS?


Hi,
I am using centOS which is identical to RH Enterprise linux but when type
lsdev or lsscsi, the system tells me that command not found. Why don't i have these utilities?

Moreover, when i login as normal user and even su (just "su", not "su -"), i cant invoke lspci, lsmod... However, when i use "su -", i can invoke those comamnd. As far as i know, when a user type a command, the system look for the command in the PATH associated with the user profile so the PATH must be the same as long as i am root ("su" or "su -"). The different between su and su - is just the directory i am in, so why can't i invoke lspci and some other command when i am in a non-root directory?

Thanks in advance
Thai
 
Old 01-14-2006, 09:25 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
Quote:
Originally Posted by lnthai2002
Hi,
I am using centOS which is identical to RH Enterprise linux but when type
lsdev or lsscsi, the system tells me that command not found. Why don't i have these utilities?
Because they are not part of the Red Hat Enterprise Linux release.


Quote:
Originally Posted by lnthai2002
Moreover, when i login as normal user and even su (just "su", not "su -"), i cant invoke lspci, lsmod... However, when i use "su -", i can invoke those comamnd. As far as i know, when a user type a command, the system look for the command in the PATH associated with the user profile so the PATH must be the same as long as i am root ("su" or "su -"). The different between su and su - is just the directory i am in, so why can't i invoke lspci and some other command when i am in a non-root directory?
When you use 'su' you inherit the users pathing, using 'su -' provides root's pathing. This does not matter which directory you are in. As an experiment use $PATH, look at your user path by typing this. Next use 'su' and try $PATH again exit the do the same after using 'su -', see the diiference.

And you can modify your user pathing to add /sbin and other wanted directories to your user pathing (look at the user's .bash_profile file). Or simply do something like for example;

$ locate lspci
/sbin/lspci
/usr/share/man/man8/lspci.8.gz

$ /sbin/lspci

Last edited by Lenard; 01-14-2006 at 09:28 AM.
 
Old 01-18-2006, 07:28 PM   #3
lnthai2002
Member
 
Registered: Jan 2005
Location: Montreal, QC, CANADA
Distribution: Red Hat Fedora
Posts: 135

Original Poster
Rep: Reputation: 15
Thanks for the instruction. You said that lsdev is not part of RH Enterprise, so where i can get these utilities? What package i should install to have lsdev and lsscsi?
Thanks
THAI
 
Old 01-18-2006, 09:11 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
I'm not 100% sure for either utility, but google should be helpful. You do not need either one, try using as replacements (maybe make alias's for them)

cat /proc/scsi/scsi

lspci -v
 
Old 08-04-2010, 02:02 PM   #5
sebastienpouliot
LQ Newbie
 
Registered: Aug 2010
Location: Montréal
Distribution: CentOS
Posts: 1

Rep: Reputation: 1
Yes you have

Hi, you do have lsscsi in Linux Centos 5.X. You just need to install the package.

yum install lsscsi

and there you are !

Quote:
Originally Posted by lnthai2002 View Post
Hi,
I am using centOS which is identical to RH Enterprise linux but when type
lsdev or lsscsi, the system tells me that command not found. Why don't i have these utilities?

Moreover, when i login as normal user and even su (just "su", not "su -"), i cant invoke lspci, lsmod... However, when i use "su -", i can invoke those comamnd. As far as i know, when a user type a command, the system look for the command in the PATH associated with the user profile so the PATH must be the same as long as i am root ("su" or "su -"). The different between su and su - is just the directory i am in, so why can't i invoke lspci and some other command when i am in a non-root directory?

Thanks in advance
Thai
 
1 members found this post helpful.
Old 10-19-2010, 11:28 AM   #6
AQG
Member
 
Registered: Jun 2005
Distribution: SuSE, Red Hat
Posts: 161

Rep: Reputation: 30
try "yum install procinfo"
this provides the lsdev utility.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Whats the differnce between Centos and CentOS? duffmckagan cAos 1 06-12-2005 12:23 PM
update centos 4 rc1 to centos 4 trou yum? maxut cAos 2 03-04-2005 02:36 AM
Centos 3.3 againstms Linux - General 3 12-24-2004 12:39 AM
CentOS Obie Linux - Security 3 05-10-2004 01:03 PM
lsmod, lspci, lsdev and compiling kernel justwantin Slackware 7 01-06-2004 03:05 PM


All times are GMT -5. The time now is 09:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration