LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-26-2001, 06:45 AM   #1
fxlee
Member
 
Registered: Aug 2001
Location: French Guiana
Distribution: Red Hat 7.2
Posts: 39

Rep: Reputation: 15
Bash commands not include???


Hi!

I'm using the RH7.1 distro and when I type (in root) in the console "modprobe ..." or "lsmod ...", there's a message : "Command not found"... ???
What does that mean? These commands aren't installed by default???
THX for help!
 
Old 10-26-2001, 08:54 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
does grep, chown, ls etc.. work?

if so, it'll be your path statement, as those system programs are in /sbin/ which is frequently not on your path, i think if you su to root from a normal user, you still often won't have your path changed totally
 
Old 10-26-2001, 10:26 AM   #3
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
I'll just clarify:

The commands are for system administration and are placed in /sbin or sometimes /usr/sbin.

You can only run programs that you specify the path to, or are in directories that are specified in your $PATH variable.

To change to root and execute root's logon scripts, which should let you run these commands without speficy the path manually use this command:

Code:
su -
As you need to be root to make use of those commands anyway there is no point in adding /sbin to your normal user $PATH.
 
Old 10-26-2001, 07:52 PM   #4
fxlee
Member
 
Registered: Aug 2001
Location: French Guiana
Distribution: Red Hat 7.2
Posts: 39

Original Poster
Rep: Reputation: 15
Thumbs up Commands OK!

Hi guys!

To answer to Acid_Kewpie: the "grep", "ls", "chown" commands work with $user but "lsmod" and "modprobe" don't...
Anyway, with the root "su -" user, these two commands work great!
THX for help guys !!!
 
Old 10-26-2001, 10:51 PM   #5
gummi
LQ Newbie
 
Registered: Oct 2001
Location: CA
Distribution: Debian
Posts: 10

Rep: Reputation: 0
Check out whether you have 'slocate' on your system or not, it keeps a database of all files on your system once you run the correct command (usually 'updatedb'). I use it pretty much constantly if I have to find a file.
 
  


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
bash commands davatar Slackware 2 04-06-2005 03:05 AM
bash commands Obie Linux - Security 4 08-15-2004 02:42 PM
Help with BASH Commands rridler Linux - Newbie 3 04-16-2004 04:43 PM
Bash commands PhuckFonix Linux - Newbie 2 03-30-2004 07:13 PM
Bash commands wprescott Linux - Distributions 6 04-27-2002 02:56 PM


All times are GMT -5. The time now is 04:48 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration