14、echo “$JAVA_HOME/bin” >>/etc/profile 转义

echo “$JAVA_HOME/bin” >>/etc/profile

文本中只会存在/bin,$JAVA_HOME不存在,需要在$JAVA_HOME前添加""转义字符

echo “$JAVA_HOME/bin” >>/etc/profile

这样文本中就会存在$JAVA_HOME/bin

原文地址:https://www.cnblogs.com/whxiao/p/13724398.html