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

link|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
feedback

1 Answer

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

export PATH="/downloads:$PATH"
link|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
feedback

Your Answer

 
or
required, but never shown

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