bash变量与变量设定文件

环境设定

  • login bash: /etc/profile  ~/.bash_profile
  • nologin bash: ~/.bashrc

bash变量内容

  • $HOME  #用户home
  • $$  #本shell pid
  • $?  #上一条命令返回值
  • $PS1  #命令提示符
  • $PS2  #escape后提示符
  • $LANG  #语言环境(为设置过其他LC_变量值时)
原文地址:https://www.cnblogs.com/wanghaoxiang/p/8284383.html