Fedora This forum is for the discussion of the Fedora Project. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
04-16-2004, 04:49 PM
|
#1
|
Member
Registered: Feb 2003
Posts: 229
Rep:
|
Add to existing path environment
I did my first fedora 1 install today, went smooth and easy. First thing I noticed (after using mandrake 9.1 for a year or so) is that there is nothing I need in my path - I have to search and find every command and type in the entire path to the command that I want to run - my fingers are getting tired. I already have a pretty long path enviroment statement. How can I concatenate my existing path statement with additional entries without having to retype it all ? Thanks !
|
|
|
04-16-2004, 04:54 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
You can use:
PATH=/path/to/new/path:$PATH
|
|
|
04-16-2004, 05:00 PM
|
#3
|
Member
Registered: Feb 2003
Posts: 229
Original Poster
Rep:
|
Great - will the change stick or will that only work for this session ?
ALSO - I made the change and checked it with set, and it did change, however, when I type in a command that is now in my path, I STILL have to type in the entire path and commandname explicitly - what else do I need to do.....Getting tired of all this searching and typing.......:-))
Last edited by explorer; 04-16-2004 at 05:06 PM.
|
|
|
04-16-2004, 05:04 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
It will only stay for that shell. You can put it in your ~/.bashrc file so it get set on each login.
|
|
|
04-16-2004, 05:22 PM
|
#5
|
Member
Registered: Feb 2003
Posts: 229
Original Poster
Rep:
|
I've added /sbin to the path, yet I still have to type in /sbin/commandname to run anything in that directory. Is there an option that forces the path and command to be typed in explicitly ?
|
|
|
04-16-2004, 05:27 PM
|
#6
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
There shouldn't be - what does the output of:
echo $PATH
show you? Is it definately there?
|
|
|
All times are GMT -5. The time now is 05:46 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|