LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-14-2003, 01:35 PM   #1
LooseCanon
Member
 
Registered: Aug 2003
Location: Canada
Distribution: RH, Fedora, Debian
Posts: 128

Rep: Reputation: 15
bash is different in every distro?


Hi everyone,

I have a weird problem. I just installed Red Hat 9 and noticed that bash commands are different from SuSE 8.2 ... For instance, in SuSE, I could use "insmod" and "modprobe" but didn't have "locate".

Quite the opposite with RH. I can "locate", but no "modprobe" or "insmod" or "lsmod".

What gives? I was always under the impression that bash was bash. Can different distro people "disallow" usage of commands like that? How can I get those commands to work in either dristribution?

Frankly, I like the terminal better in RH9 over SuSE, but overall, I like SuSE better than RH 9 (can't get a bunch of k programs to work right in RH9 like K3b and Rh seems to be really slooow).... Weird.

 
Old 09-14-2003, 02:00 PM   #2
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
modprobe, locate, etc are programs. They have nothing to do with the shell. (i.e. you can execute them from csh, ksh, etc). Command line commands that are installed is, I guess, up to the distro choice. I would have thought all of the above were basic, but I guess not. Are you trying the above commands (modprobe), etc as a regular user. They are in /sbin which is only generally part of roots path. If so, in RH, as a regular user, /sbin/modprobe.

RO
 
Old 09-14-2003, 02:00 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
That isn't bash or the shell, those from my knowledge or either not installed or not in your default path, etc.

Not sure if Suse is installed with locate by default but Redhat is, as along with the others that are only in root's default path.
 
Old 09-14-2003, 02:06 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
locate/updatedb is present in suse. Don't know if you installed them.
They should recide here:
/usr/bin/locate (suse 7.2 + 8.1)

And trickybid and RolledOat are right: This has nothing to do with bash

Last edited by druuna; 09-14-2003 at 02:07 PM.
 
Old 09-14-2003, 05:30 PM   #5
LooseCanon
Member
 
Registered: Aug 2003
Location: Canada
Distribution: RH, Fedora, Debian
Posts: 128

Original Poster
Rep: Reputation: 15
hmmm.. ok thanks - still new to Linux and I was under the impression that those commands were in bash. lol don't get me to troubleshoot a linux system.. well I'm getting better but there's lots to learn. So I found modprobe (that's stored in /sbin). If I "cp" that to /usr/bin should it work then in a console/terminal? 'Cuz right now when I'm in terminal logged in as root I get "command not found" - so I'm presuming the command I type is looking for "modprobe" in /usr/bin - is that correct?

thanks
//Canon

 
Old 09-14-2003, 08:27 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
I wouldn't recommend moving the command. The solution to this would be to add /sbin into root's path by either editing the global /etc/profile or in roots home directory if there is a .bashrc file.

You can have startup scripts or system services that call upon commands in /sbin and if you moved them, that can really mess up your system.

I would recommend adding it to your path or making a symlink to it.

Regards.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
$LINENO can't be modified in bash 3.0, while it can be in bash 2.05b Darwish Linux - Software 1 11-07-2005 02:57 PM
Distro Information from Bash shifty_eyes Linux - Newbie 7 10-13-2005 08:18 PM
Distro: Less scripting. Looking for mainly Elf binary based distro Z505 Linux - General 1 04-02-2005 11:33 PM
bash + html + javascript or just bash ? rblampain Programming 4 12-01-2004 07:53 AM
why did bash 2.05b install delete /bin/bash & "/bin/sh -> bash"? johnpipe Linux - Software 2 06-06-2004 06:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:06 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
Open Source Consulting | Domain Registration