You are not logged in.
Pages: 1
As per subject.
To run such command I have to give full path of /home/user/bin/app because simple app is not being recognized.
Last edited by Lockheed (2011-05-02 12:18:53)
Offline
/home/user/bin is in you PATH? (echo $PATH), if not put something like this in you env vars (e.g. in .bashrc)
export PATH="/home/user/bin:$PATH"
Offline
Unless you have a good reason to put your own binary directory at the front, you should put it at the back. That way if someone gains access to your user and puts some malicious binary named the same thing as something you "sudo" a lot, they will not gain root access. If it's at the back, then system binaries take precedence.
Offline
Well, obviously "user" in the path is just replacement of my username, lets say the real location of my bins is /home/smith009/bin
I am not really sure what either of us suggested to do. Can you rephrase?
Offline
Well, obviously "user" in the path is just replacement of my username, lets say the real location of my bins is /home/smith009/bin
I am not really sure what either of us suggested to do. Can you rephrase?
kazuo suggested you run
export PATH="/home/user/bin:$PATH"
and try again. Of course you need to change to the real path, e.g. /home/smith009/bin.
Lockheed suggested to change it to
export PATH="$PATH:/home/user/bin"
Offline
Works awesome. Thanks!
Offline
You need to put that line into .bashrc or whatever you keep your aliases etc. so it runs every time you start your system.
Don't forget to mark the thread as [SOLVED].
Offline
Pages: 1