`
iwindyforest
  • 浏览: 230170 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

How to record timestamp of each command in history

阅读更多

There's no timestamp of each command when we are using 'history ' command to see the command records.

 

We can add timestamp for each command by following steps:

 

1. Edit ~/.bashrc or /etc/bashrc

 

export HISTTIMEFORMAT="%m-%d-%Y %H:%M:%S "

 

Note: m, d are in lowercase, Y, H, M, S are in uppercase.

          There's a blank between 'S' and the last Quote Mark.

 

2. Save the bashrc file, and use 'source ' command to reload the bashrc config file.

 

3. Done.

 

 

 

 

0
1
分享到:
评论

相关推荐

    UE(官方下载)

    In this tutorial, we'll cover some of the basics of Unicode-encoded text and Unicode files, and how to view and manipulate it in UltraEdit. Search and delete lines found UEStudio and UltraEdit provide...

    String to TimeStamp2012.zip_In Time_labview

    Convert String to Time Stamp in Labview

    VclZip pro v3.10.1

    PLEASE TAKE A LOOK AT THE "WHAT's NEW IN THIS VERSION" LINK IN THE HELP FILE AS IT HAS CONVENIENT LINKS TO ALL OF THE NEW TOPICS. ==================== Version 3.10 Build 1 - Several bug fixes. - ...

    Labview调用WinPcap使用千兆以太网

    NI Engineers can only address questions on how to call external code from LabVIEW, not the contents of each call demonstrated in this example. In addition, we cannot guarantee that the software will ...

    MySQL 5.6 中的 TIMESTAMP 和 explicit_defaults_for_timestamp 参数

    主要介绍了MySQL 5.6 中的 TIMESTAMP 和 explicit_defaults_for_timestamp 参数,需要的朋友可以参考下

    【源码阅读】 protobuf 中的 timestamp 包

    文章目录Timestamptimestamp.go如何使用 Timestamp path: google/protobuf/timestamp.proto 在 timestamppb 中 Timestamp 包含两个字段 seconds 表示秒 nanos 表示纳秒 message Timestamp { int64 seconds = 1; ...

    ICMP timestamp请求响应漏洞 修复 Traceroute探测漏洞 修复 linux 7

    ICMP timestamp请求响应漏洞 修复 Traceroute探测漏洞 修复 使用firewall-cmd打开关闭防火墙与端口 linux 7 ICMP timestamp请求响应漏洞 修复 Traceroute探测漏洞 修复 使用firewall-cmd打开关闭防火墙与端口 linux ...

    oracle中TIMESTAMP与DATE比较

    oracle中TIMESTAMP与DATE比较

    oracle日期时间型timestamp的深入理解

    1、字符型转成timestamp 代码如下:select to_timestamp(’01-10月-08 07.46.41.000000000 上午’,’dd-MON-yy hh:mi:ss.ff AM’) from dual; 2、timestamp转成date型 代码如下: select cast(to_timestamp(’01-10...

    eac3to V3.17

    * timestamp derived FPS is used for gap checking instead of video bitstream FPS * fixed: 44.1khz AC3 encoding was still broken * fixed: zero byte stripping pass was done for true 24bit TrueHD tracks *...

    a_byte_of_python

    How To Raise Exceptions Try..Finally Using Finally Summary 14. The Python Standard Library Introduction The sys module Command Line Arguments More sys The os module Summary 15. More Python ...

    HDVsplit DV采集软件

    6. Choose how to name each scene: add number to the end of file name e.g. 0001 ("Count" option) or add date and time to the end of file name e.g. 2005_10_12-12_10_42 ("Date and time" option) 7. You ...

    API接口设计之token、timestamp、sign

    API接口设计之token、timestamp、sign的具体使用demo示例。

    论文研究-Chaotic Digital Watermarking Algorithm Based on The Timestamp of Local Machine.pdf

    基于本地机器时间戳的混沌数字水印算法,刘泉,Jiang Xuemei,本文提出了一种基于本地机器时间的数字水印算法,水印信号根据混沌序列方法产生,密钥控制由嵌入水印算法的机器时间来决定,实验

    oracle --timestamp

    oracle --timestamporacle --timestamporacle --timestamporacle --timestamporacle --timestamporacle --timestamporacle --timestamporacle --timestamp

    Design and Architecture of CockroachDb

    The map is composed of one or more ranges and each range is backed by data stored in RocksDB (a variant of leveldb), and is replicated to a total of three or more cockroach servers. Ranges are ...

    oracle timestamp详解

    oracle timestamp详解 将常用的转换方法及使用注意事项都罗列出来了

    TouchPro V5.0.1.3

    Load the time from the timestamp of a file or folder, or from embedded time properties in pictures, email or Microsoft Office documents. Select 24 hour time, and long or short date format. Command ...

    有关java中的Date,String,Timestamp之间的转化问题

    有关java中的Date,String,Timestamp之间的转化问题

Global site tag (gtag.js) - Google Analytics