[Techtalk] Executing user-made commands on the command line
Mary
mary-linuxchix at puzzling.org
Sun May 11 22:12:54 EST 2003
On Sun, May 11, 2003, Berenice wrote:
> 2. If I create my own commands, how can I make them run like standard
> linux commands (ie: just by tying in the command name at the prompt)?
They need to be in a directory in your $PATH variable.
To see your $PATH variable, type:
echo $PATH
You can append to it like this:
PATH=$PATH:NEWDIR
but often ~/bin is already in your $PATH, so you could also just put
files in ~/bin
-Mary
More information about the Techtalk
mailing list