Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a environmental variable called "PATH" which has a value, now I want to append a new value to the existing value of a variable "PATH" and to set it permanently.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

To append to $PATH:

export PATH="$PATH:/extra/directory/here"

To make it 'permanent', add that line to ~/.profile

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.