怎么在linux中加入一個路徑,讓他每次重起自動加入?? 在etc/profile中怎么實現? 比如加入 /opt/tools/bin這個路徑,在profile中應該加入哪個語句?

熱心網友

你可以在export PATH 之前加上 PATH=$PATH:/opt/tools/bin export PATH

熱心網友

ln etc/profile /opt/tools/bin這就行了,linux的用戶界面Shell是一種聯機命令語言,共有100余條簡單的Shell命令,你說的就是其中的一條.