Saturday, 15 June 2013

linux - Not able to access files in the bin folder after setting PATH variable -



linux - Not able to access files in the bin folder after setting PATH variable -

i have added hadoop_install , it's bin path variable in .bash_profile (shown below) , executed using command . .bash_profile. can run command hadoop version fine when close terminal , run same command 1 time again gives me error follows

gsidevas@gsidev-cloudvm ~]$ hadoop version bash: hadoop: command not found current .bash_profile export hadoop_install=/usr/local/hadoop path=$path:$home/bin:$hadoop_install/bin export path

what need hadoop_install , it's bin gets set permanently in environment?

by default, bash reads , executes commands in .bash_profile in login shells. if you're creating terminal via x11 or similar software, chances terminal not login shell default.

you can accomplish effect every shell moving changes made .bashrc file. please note works if username on scheme uses "bash" shell , not "sh" since "sh" .bashrc file is, default, ignored.

linux unix

No comments:

Post a Comment