怎么在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命令,你说的就是其中的一条.
怎么在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命令,你说的就是其中的一条.