vim  ~/.bashrc 或者 ~/.bash_profile  或者 获取root权限修改vim /etc/profile

最后添加

【Linux】linux history命令执行后显示历史命令执行时间

export HISTTIMEFORMAT="%F %T  "(注意有两个空格)

保存后关闭xshell窗口,重新打开执行history命令

【Linux】linux history命令执行后显示历史命令执行时间

 

相关文章:

  • 2021-10-01
  • 2022-02-07
  • 2021-06-05
  • 2021-12-05
  • 2021-08-04
  • 2021-06-18
  • 2022-12-23
猜你喜欢
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
相关资源
相似解决方案