Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
That's the way you do it, but why do you need to put /usr/sbin in your PATH? The way I understand it, that's usually just for programs that normally need root permissions, and root's PATH should include it.
Originally posted by jailbait "I've found it necessary to export /usr/sbin to my shell using the command 'export path=$PATH:/usr/sbin'. It works for a day or so then i have to give the command again....why? how to fix"
Whenever you logout or reboot the PATH variable is set back to the original value. You can make your export command permanent by placing it in /home/user/.bashrc on most distributions.
I'm using rh9 and am trying to set this path as root. there doesnt seem to be a root in /home/username...so where is the equivalent of /home/user/.bashrc for the root?
Add it wherever you want, just stick it on the top or bottom. I'm pretty surprised that /usr/sbin isn't in root's PATH, though. How are you becoming root? Try going to a console, typing "su -" to become root (the "-" is required to inherit all the things in root's .bashrc), and seeing what "echo $PATH" gives you.
i added the line after the fi. It shows in the path now b/c I haven't rebooted, but, rest assured, when i do it will be gone. I can check it tomorrow, for, when i reboot i have to manually load the driver fot eth0 by typing:
/sbin/insmod e100 where e100 is the name of the driver. I'd like to get this to run automatically as well.