QUOTE
Originally posted by Paul
OK, dumb question:
How do you make it so you only type "program" to get it to run, instead of /path/to/program?
This is for my RH 7.2 system.
You need to make an alias.
If you want to do this as root user, su to root, then type 'cd' to get to the root directory.
In this directory is a file called .bashrc. Open this file and add any aliases you wish. For example you can add a line:
alias iptables='/sbin/iptables'
Generally you will add:
alias program='/path/to/program'
I also remove the rm='rm -i' alias so that deleting directories containing a lot of files isn't such a hassle. If you do this be *very* careful with the rm command.
mk