1. 程式人生 > >修改linux終端的提示字符

修改linux終端的提示字符

技術分享 mage -o 分享圖片 col image inux ps1 source

  • 打開環球變量文件:vim /etc/profile:
  • 添加提示符變量:
    PS1="[\u@\h \W]\$";
  • 使 profile 文件生效:source /etc/profile
  • 效果:
    技術分享圖片
  • 修改linux終端的提示字符