LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-16-2004, 04:49 PM   #1
explorer
Member
 
Registered: Feb 2003
Posts: 229

Rep: Reputation: 34
Angry 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 !
 
Old 04-16-2004, 04:54 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
You can use:
PATH=/path/to/new/path:$PATH
 
Old 04-16-2004, 05:00 PM   #3
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
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.
 
Old 04-16-2004, 05:04 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
It will only stay for that shell. You can put it in your ~/.bashrc file so it get set on each login.
 
Old 04-16-2004, 05:22 PM   #5
explorer
Member
 
Registered: Feb 2003
Posts: 229

Original Poster
Rep: Reputation: 34
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 ?
 
Old 04-16-2004, 05:27 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
There shouldn't be - what does the output of:
echo $PATH

show you? Is it definately there?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Resize existing and add another partition with LVM donv2 Linux - Newbie 3 04-27-2005 05:23 AM
Add existing C++ files to Kdevelop project Siavash Linux - Software 1 04-08-2005 03:31 PM
How to add LILO to existing Linux? Freederick Linux - Newbie 9 03-28-2004 06:05 PM
add software raid-1 to existing system hoover93 Linux - Hardware 1 10-07-2003 11:52 AM
Add a new hard drive to existing RH 7.2 guanyu Linux - Software 1 02-27-2002 11:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration