Commands in sbin
I am fairly new to Linux, but have had a bit of experience in Debian Linux. I am now trying out the new Fedora 7 and having a few problems. Normally when I want to run a command such as
Code:
modprobe Code:
modprobe Code:
/sbin/modprobe |
You need to be root for the command to work anyway. You could add /sbin/ to your path, but it may be better to leave it as it is and run the command like "sudo /sbin/modprobe ...".
Normal user commands aren't in /sbin. There are some user commands in /usr/bin. Make sure that that is in your path. |
Thanks. I found out that if I log in as root from the login screen everything works as it should, but if I log on as my username and then open terminal and login to root using su then it doesnt work, so I guess I'll just log in as root when I need to perform those commands.
|
Quote:
Code:
su - |
that's how I was originally doing it by using
Code:
su |
Quote:
Code:
su - |
No, they aren't the same. "su -" starts an interactive shell, so root's environmen, so root's ~/.profile script is run, setting up root's PATH variable. Simply using "su", you are running as root, but in your own environment.
|
Ohh ok! Thanks, that works so much better! Sorry, I'm new at this!
|
All times are GMT -5. The time now is 07:03 AM. |