LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   /sbin path (https://www.linuxquestions.org/questions/fedora-35/sbin-path-382408/)

mickeyboa 11-12-2005 07:55 AM

/sbin path
 
what line in user .profile do I put to make a PATH to /sbin for user.

Jim

MensaWater 11-12-2005 08:07 AM

There is no required place for it but I'd suggest putting PATH variable near the beginning so that if you call any commands later in .profile they'll already be in the PATH. Note that case is significant in Unix/Linux so you must put it as "PATH=" rather than "path=".

Note that PATH is initially set in /etc/profile which is read by all users. The .profile in your home directory is used to supplement or replace those settings. Typically within the .profile rather than doing: "PATH=/bin:/usr/bin:/sbin" you'd do something like "PATH=$PATH:/sbin". The first syntax would make it replace whatever /etc/profile had put in PATH and the latter would make it ADD to what was in PATH already. (Afer defining a variable you reference it with $ prepended to the name so "PATH=" defines it but all references afterwards must say "$PATH" rather than just PATH.)

You can find out what your PATH is currently set to by typing:
echo $PATH

Finally if you're using bash (which is default shell for Linux) you may have some settings in .bashrc as well as .profile.

mickeyboa 11-12-2005 08:21 AM

Thanks , that was what I was looking for.

jim

MensaWater 11-12-2005 09:12 AM

No problem. Glad I could help.

Quote:

Me and my HoundDog "Redneck Linux"
Can you or your dog really be a redneck if you're north of the Mason-Dixon line? :p

mickeyboa 11-12-2005 09:32 AM

Evidently your not aware of all the transplanted southerns living in the north, working in the manufacturing plants.
Didn't you know there are more West Virginia's living in Akron, Ohio than in West Virginia.
I don't where you live, but there are a awfully lot of people living in big cities on the right and left coast that really need to get out and see
the rest of America, we are the most diversified nation in the world.
For instance my Hound Dog is a Kentuckian and my family are Virginia's living in Indiana, can you beat that ?

Jim

MensaWater 11-13-2005 08:53 AM

It was meant as a joke. The little sticking out tongue smiley should have been a clue.

Odd that you mention West BY GOD Virginia - I lived in Wheeling for 10 years.

I was born in MD and have lived and worked in FL, AL, TN, TX, NC & GA not to mention the island of Grenada in the West Indies. I take regular road trips so have visited all but 5 states not to mention flights to St. Thomas and Puerto Rico (US Possessions) and have also been outside the US to Bermuda, Mexico, Canada, Germany and even lived 5 weeks in India. I'd say all that qualifies as "getting out and seeing".

By the way the post shows I live in Atlanta just as yours shows Indianappolis. I don't really believe the South has more rednecks just making a joke based on the stereotype as I mentioned. I agree this is a wonderfully diverse country and I enjoy my periodic pilgrimages to see other parts of it even if folks find my accent quaint from time to time. (Funny thing is everywhere outside the South they think I have a Southern accent but here they think I have a Northern one - I've even been asked if I was English once apparently because I was able to form a sentence properly.)

mickeyboa 11-13-2005 11:37 AM

I knew that, The way I came across , I'am sure you thought I was serious, but I was joking also.
You know most people don't know where the MasonDixion line is. North of Md.
Have a great day.

Jim

MensaWater 11-13-2005 12:32 PM

OK Mickey. Interestingly enough Wheeling and most of the northern panhandle of WV is above the MasonDixon line but most of the state is below it.


All times are GMT -5. The time now is 01:12 AM.