#命令行优化:
echo "export PS1='\[\033[01;31m\]\u\[\033[00m\]@\[\033[01;32m\]\h\[\033[00m\][\[\033[01;33m\]\t\[\033[00m\]]:\[\033[01;34m\]\w\[\033[00m\]$ '" >>/etc/profile
source /etc/profile

#历史记录优化: 
export HISTTIMEFORMAT='%F %T ' 
echo "export HISTTIMEFORMAT='%F %T '" >>/etc/profile 
source /etc/profile 

效果图:

Linux命令行优化,历史记录优化

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-08
  • 2021-03-31
  • 2022-12-23
  • 2022-12-23
  • 2022-01-11
猜你喜欢
  • 2022-12-23
  • 2021-08-29
  • 2022-02-07
  • 2022-01-10
  • 2022-12-23
  • 2021-11-13
  • 2021-12-23
相关资源
相似解决方案