Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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
@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


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.