Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a file at "/downloads/some.file", and I want that added to my path. How is this accomplished in ubuntu?

share|improve this question
    
Don't add your downloads directory to $PATH, it'll bite you sooner or later. Create a dedicated ~/bin or something. –  grawity Jun 14 '11 at 18:54

1 Answer 1

In your ~/.profile file, append to the exported path.

export PATH="/downloads:$PATH"
share|improve this answer
    
Tried this, and still unable to access it from the path.. I restarted the terminal, do I need to do more? –  coffee Jun 14 '11 at 14:10
1  
@coffee .profile is loaded upon login. Try logging out and back in to your system. Putting it in .profile makes it global to your login and not just an invoked bash shell. –  John T Jun 14 '11 at 14:43

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.