shell中设置环境变量,添加路径

csh, tcsh

The PATH variable is a list of directories to be searched, you need

setenv PATH {$PATH}:/home/srinadel/bin


来源:https://stackoverflow.com/questions/26486613/how-to-set-path-for-local-bin-file-in-cshrc

 

bash:
export PATH=/home/euler/.bin:$PATH

 

posted @ 2025-02-27 19:47  profesor  阅读(13)  评论(0)    收藏  举报