LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 06-14-2002, 10:00 AM   #1
manojrkrish
LQ Newbie
 
Registered: Jun 2002
Location: UK
Distribution: Mepis3.3, Slackware
Posts: 15

Rep: Reputation: 0
Angry lsmod command


I'm trying to find out which modules are loaded on my machine. According to the documentation i should run thelsmod command. But I'm not able to find it anywhere. Can someone tell me where I can fine it please?
 
Old 06-14-2002, 10:08 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
should be a root only applciation stored in /sbin/ if it's not there (which would be very bizarre) then install the modutils package
 
Old 06-15-2002, 03:21 AM   #3
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Under normal circumstances you can just type lsmod at a bash prompt. At least that is what I have always been able to do...
 
Old 06-20-2002, 04:30 AM   #4
manojrkrish
LQ Newbie
 
Registered: Jun 2002
Location: UK
Distribution: Mepis3.3, Slackware
Posts: 15

Original Poster
Rep: Reputation: 0
I did find lsmod and modprobe in /sbin but strangely enough /sbin is not in the system path settings.

 
Old 06-20-2002, 04:34 PM   #5
Glover
LQ Newbie
 
Registered: Jun 2002
Location: Detroit
Distribution: Fedora, Gentoo
Posts: 14

Rep: Reputation: 0
You can also try:
whereis <command> to find commands
and also
locate <file/command> can be useful
 
Old 06-20-2002, 05:45 PM   #6
jglen490
Member
 
Registered: Apr 2002
Location: The next brick house on the right.
Distribution: Kubuntu 8.04
Posts: 668

Rep: Reputation: 31
Make sure that you enter:

su -

When you change to your root user. You must include the "-" in order to bring in the root user's environment including $PATH info.
 
  


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
lsmod segfault? z-vet Yoper 6 12-15-2004 04:40 PM
lsmod show nothing sesteban Linux - Newbie 6 07-20-2004 02:05 PM
How to block lsmod and su so user can't use those command Ninja_212 Slackware 4 04-18-2004 01:13 AM
Why can't I use lsmod rmmod etc JohnSharp Linux - Newbie 4 04-08-2004 11:11 AM
lsmod shoot2kill Linux - General 5 04-29-2002 10:42 PM


All times are GMT -5. The time now is 07:55 AM.

Main Menu
Advertisement
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