Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.