Re: how to add commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02Dec2006 04:49, Rizwan Khan <rizwaan@xxxxxxxxx> 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@xxxxxxxxxx> 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

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux