Take the 2-minute tour ×
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.

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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1

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.