LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 11-30-2006, 07:40 PM   #1
alex_lev
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
Adding a directory to an existing user path


Hi,

I want to add a new directory to my .bash_profile.

It already has PATH=$PATH:$HOME/bin
How do I add another one without changing this one ?
Whats the syntax ?

Thanks!
 
Old 11-30-2006, 07:44 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
Change that line to:
Code:
export PATH="$PATH:$HOME/bin:/your/additional/path"
 
  


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
Adding new group to existing user ALF Linux - Software 7 05-08-2006 10:35 PM
Permission denied existing directory root/user BDHamp Linux - General 5 04-10-2006 10:41 AM
Adding directory to $PATH uv2005 Linux - Newbie 2 03-17-2006 09:39 AM
Add to existing path environment explorer Fedora 5 04-16-2004 05:27 PM
adding a new user doesn't create a home directory abrakadabra Linux - General 6 08-09-2002 09:11 PM


All times are GMT -5. The time now is 02:41 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