Click to See Complete Forum and Search --> : making it so that I don't need ./
hoffa69
02-26-2003, 02:58 AM
I want to have my system so that I can type word and have it as command rather than having to type ./command. How can I do this?
ALso, on my Mandrake system, I can type cd.. to go down one directory. On redhat I can't do this. How can I enable this in Redhat?
KarrottoP
02-26-2003, 03:09 AM
symlink it to /usr/bin
example for phoenix web browser
"ln -s /usr/local/phoenix/phoenix /usr/bin/"
and you without realizing it showed me why I have been having trouble getting java to work with phoenix (because I just tested it and launched it from a terminal then got its error messages) :D
hoffa69
02-26-2003, 03:16 AM
Do you have to do that for every specific program you want executed without the ./?
camelrider
02-26-2003, 05:45 AM
Only those in your current directory if it is not in your PATH.
Actually some people put "." into their PATH, but I personally think this is a slippery slope.
I keep changing keyboards, but none of them spell any better!
X_console
02-26-2003, 08:17 AM
You can include the current directory . to your PATH variable, but you need to be careful where you put it. Make sure it's the last entry in PATH and make sure root doesn't even have it. Security risk you see. So if you do want to put it, the last line in your ~/.bash_profile should be:
export PATH=$PATH:.
This will ensure that . is always the last entry. Once you've made the modification, run source ~/.bash_profile to update the PATH.
richjoyce
02-26-2003, 08:58 AM
for the cd.. problem, you can do this:
alias cd..='cd ..'
and put that in your .bash_profile or whatever