我是剛剛從Windows切換到Linux的新用戶。我在/opt/ActiveTcl-8.5/
中安裝了ActiveTcl-8.5,現在我想將它的bin
目錄添加到UNIX路徑中。在Ubuntu中添加一個目錄到PATH
我已經從網上讀了一些文章,並且對要修改哪個文件感到困惑。我的/home/tofayel
目錄包含.bashrc
,.bash_logout
,.bash_history
和.profile
;但不是.bash_login
和.bash_profile
。
我在哪裏添加額外的行以將/opt/ActiveTcl-8.5/bin
添加到PATH?
你可能想把它放在.bashrc中。看看這個答案對不同文件的解釋 - http://stackoverflow.com/questions/415403/whats-the-difference-between-bashrc-bash-profile-and-environment – arunkumar