Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

Possible Duplicate:
How to run my own program without specifying its path

One of the applications that I want to use came in a tar.gz, and I unzipped it into my home directory. Well, in order to access the application, I would have to write out the whole path of the executable file with a period at the beginning.

So, if I downloaded an application called alligator and it was in my Downloads folder, I would have to execute it by calling ./home/Downloads/alligator-folder/alligator. Is there a way to make a shortcut so I could call the executable by just saying alligator?

share|improve this question

marked as duplicate by rozcietrzewiacz, Gilles, Michael Mrozek Sep 3 '11 at 2:12

This question was marked as an exact duplicate of an existing question.

You need to have a look at the PATH env. variable - it seems that your question is (almost?) a duplicate of this one.

share|improve this answer

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