LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 03: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, 03:54 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You can use:
PATH=/path/to/new/path:$PATH
 
Old 04-16-2004, 04: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 04:06 PM.
 
Old 04-16-2004, 04:04 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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, 04: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, 04:27 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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

show you? Is it definately there?
 
  


Reply



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 04:23 AM
Add existing C++ files to Kdevelop project Siavash Linux - Software 1 04-08-2005 02:31 PM
How to add LILO to existing Linux? Freederick Linux - Newbie 9 03-28-2004 05:05 PM
add software raid-1 to existing system hoover93 Linux - Hardware 1 10-07-2003 10:52 AM
Add a new hard drive to existing RH 7.2 guanyu Linux - Software 1 02-27-2002 10:17 PM

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

All times are GMT -5. The time now is 09:23 PM.

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
Open Source Consulting | Domain Registration