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

Possible Duplicate:
How to correctly add a path to PATH?

I installed "perf" on Linux. But I can only use it by specifying the path: ~/bin/perf

I checked path by using echo and I found /bin is there.

What else should I do?

share|improve this question

marked as duplicate by Gilles, Ulrich Dangel, Renan, jasonwryan, warl0ck Sep 7 '12 at 7:40

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.

up vote 4 down vote accepted

~/bin is not /bin. Add it to $PATH.

share|improve this answer
but I got this, why? " `/home/paul/bin': not a valid identifier " – Anders Lind Mar 8 '12 at 7:26
@AndersLind: get rid of the whitespace. It should be export PATH=foo:bar:baz, not export PATH = foo:bar:baz. Shells are sensitive to this sort of thing. – Alexios Mar 8 '12 at 11:17

You have to add ~/bin to $PATH. You can do it with this command :

export PATH="$PATH":~/bin

You can check your PATH variable with env :

env | grep  ^PATH=
share|improve this answer
Another way to check PATH variable is simply echo $PATH. – jofel Mar 8 '12 at 8:32

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