[問題] PATH 怎麼編輯?

看板LinuxDev作者 (重新認識自己)時間11年前 (2013/02/17 21:50), 編輯推噓3(305)
留言8則, 6人參與, 最新討論串1/1
不好意思, 我完全沒有Linux的底子 因為要使用open source的toolkits時出現問題 還請有經驗的版友幫個忙 我已安裝了toolkit "wave" 使用該toolkit "wave" 時系統回傳`wave: Command not found.' 指導手冊上說: If you see a response similar to `wave: Command not found.', you will need to find the executable copy of WAVE on the WAVE host system. (It may be in a directory that is not part of your PATH; if so, you may wish to add that directory to your PATH by editing .cshrc or .profile in your home directory. 看起來 我必須編輯 .profile 以增加此 wave toolkit 至 PATH 請問我應該要怎麼進行?? 還請有經驗的版友教我了, 謝謝 ~~ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.64.173.54

02/18 02:40, , 1F
export PATH=/new/path:$PATH (可能是放到 .bashrc)
02/18 02:40, 1F

02/18 18:14, , 2F
或是放在 .bash_profile 也行
02/18 18:14, 2F

02/20 18:12, , 3F
vi ~/.bashrc
02/20 18:12, 3F

02/20 18:13, , 4F
Adding this line PATH=$PATH:~/bin/
02/20 18:13, 4F

02/20 18:13, , 5F
source ~/.bashrc or reboot
02/20 18:13, 5F

02/24 11:52, , 6F
.bash_profile是遠端登錄時會讀的 .bashrc是本機
02/24 11:52, 6F

03/05 13:02, , 7F
樓上 我測試過都會讀= = 他有先後順序的 by鳥哥 擇一即可
03/05 13:02, 7F

03/05 16:01, , 8F
事實上有分 non-login shell 和 login shell 不一樣
03/05 16:01, 8F
文章代碼(AID): #1H8E0FqK (LinuxDev)