0

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?

Anders Lind
  • 2,385

2 Answers2

4

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

  • but I got this, why? " `/home/paul/bin': not a valid identifier " – Anders Lind Mar 08 '12 at 07: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 08 '12 at 11:17
3

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=
Coren
  • 5,010