Posted By

berkes on 03/11/10


Bash linux bashrc bin executable

Versions (?)

If a 'bin' exists in the user home, then add that to the PATH.

 / Published in: PHP


Put this line in your .bashrc. If the user has a directory named 'bin' then that will be added to the PATH. All scripts in that path (wich are executable) will be available as commands to that user.

  1. # enable bin diretory in PATH when found
  2. if [ -a ~/bin ]; then
  3. PATH=$PATH:~/bin
  4. fi

Report this snippet  


RSS Icon Subscribe to comments
Posted By: arrowtricks on August 8, 2018

ok i will try.. Java Training in Bangalore Current Trends in Java Technology

You need to login to post a comment.