Create alias or add path?
I've just installed a new program (let's call it foo) on my Linux machine.
The program's files are in an unusual location that is not currently part
of my $PATH. If I would like to be able to easily run this program from
terminal, while in any directory, is it better to change my $PATH variable
or to create an alias? Does it matter?
For example, the alias method would be adding this: alias
foo="/path/to/program/foo.sh"
And the $PATH method would be: export PATH=/path/to/program;$PATH
Which is better and why?
No comments:
Post a Comment