how to add commands

Cameron Simpson cs at zip.com.au
Sat Dec 2 21:18:05 UTC 2006


On 02Dec2006 04:49, Rizwan Khan <rizwaan at gmail.com> wrote:
| >you can alias a command for your custom name.
| What does this means??? can you plz elaborate this further, thanks

It means it's a bad idea. Aliases are usually a waste of time.

Generally you simply want to ensure the command executable lives in a
directory in your $PATH variable.

When you installed Purify, where did it put the purify executable?
Supposing it put it in:
  /some/where/bin/purify
Then you want to add "/some/where/bin" to the list of directories in
your $PATH variable.

You can do this immediaitely at your shell prompt like this:

  PATH=$PATH:/some/where/bin
  export PATH

To make that permanent you need to put it in your $HOME/.profile (or
$HOME/.bash_profile). Just add those two lines to the end of it.

Then you should just be able to type "purify", and indeed any other
command in /some/where/bin.

Cheers,
-- 
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

Magistrates think that riding on one wheel is not in full control,
however if the process has continued for some time, it is a sign of
above average control. It says more about magistrates than wheelies.
        - Performance Bikes




More information about the redhat-list mailing list