zoukankan      html  css  js  c++  java
  • 使history命令显示时间

     

    添加环境变量HISTTIMEFORMAT就行了

    # export HISTTIMEFORMAT='%F %T '

     

    其中:

    %F   full date; same as %Y-%m-%d

    %T   time; same as %H:%M:%S

    如果不想每次都输入,就放到~/.bashrc 、/etc/profile 或者/etc/bashrc中吧

    效果如图:

    image

  • 相关阅读:
    蓝奏云的链接打不开
    数据链路层
    markdown(md)
    物理层
    计算机网络概述
    86五笔学习笔记
    Ubuntu初次使用的问题
    Hello Word!
    快速创建Flask Restful API项目
    Ubuntu环境下部署Django+uwsgi+nginx总结
  • 原文地址:https://www.cnblogs.com/bingxinguoke/p/3302957.html
Copyright © 2011-2022 走看看