Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

Just installed bash dropbox-upload on my raspberry Pi with a debian distro. Right now I have to be in my root/src/Dropbox-Upload/ catalog to run ./ command.

How can I make ./ run from anywhere?

I saw something like Add: export PATH=$PATH:/new/path

But I'm really a newbie on linux and scripting. Where and how should I add it?

Kind regards

share|improve this question

migrated from Sep 27 '12 at 23:38

This question came from our site for professional and enthusiast programmers.

In your home directory there should be a file like .profile / .bash_profile / .bashrc If one of these files is present, open them and see if there is a line already defining your PATH. If so, you could append the folder containing the dropbox upload shell script. If not, create a new line for PATH.

More info on path cam be found here:

share|improve this answer

Instead of messing with your PATH you could simply move it to /usr/local/bin (assuming this directory exists and is already on the default PATH, and assuming the script is self-contained, i.e. doesn't also need to have libraries or data files installed).

The prefix ./ is used to refer to the current directory; you should omit that part to make the shell use your PATH for locating the script or executable.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .