Possible Duplicate:
Add folder to PATH

I want to a add a directory to my bash to search in, and I am using the $PATH=.... it works however when I open a new command window it is not there.

How can I permanently add this to the path on Linux?

link|improve this question
Related topic. – Daniel Beck Oct 26 '11 at 16:25
A remark: adding the current working directory to your path is considered very dangerous. You cannot move around safely in any filesystem anymore. Just imagine, someone places a script called "ls" in his home or any directory which calls "rm -f" on your home or any other sensitive files. – barbaz Oct 26 '11 at 19:57
feedback

migrated from stackoverflow.com Oct 26 '11 at 16:16

This question came from our site for professional and enthusiast programmers.

closed as exact duplicate by JdeBP, Sathya Oct 28 '11 at 11:56

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

1 Answer

Add a PATH=$PATH:. line to your ~/.bashrc. See this question for details.

link|improve this answer
5  
Bear in my that adding current folder to the path is security risk, it exposes user of never knowing if its running command from some unsecured folder or a normal system command ( 'ls' for example) – bbaja42 Oct 26 '11 at 16:48
feedback