首页 > 系统相关 >linux history记录加时间戳

linux history记录加时间戳

时间:2023-01-14 11:33:12浏览次数:37  
标签:10 06 04 记录 05 53 linux 2015 history





默认的history是没时间戳,通过设置变量可能添加时间戳

#export HISTTIMEFORMAT="%F %T `whoami` "

# history

  553  2015-06-04 10:05:53 root cd
  554  2015-06-04 10:05:53 root cd python/
  555  2015-06-04 10:05:53 root ll
  556  2015-06-04 10:05:53 root cd Python-3.4.3
  557  2015-06-04 10:05:53 root ll
  558  2015-06-04 10:05:53 root ./configure
  559  2015-06-04 10:05:53 root make
  560  2015-06-04 10:05:53 root make install
  561  2015-06-04 10:05:53 root python -v
  562  2015-06-04 10:05:53 root rpm -qa | grep python
  563  2015-06-04 10:05:53 root thon-pycurl-7.19.0-8.el6.x86_64
  564  2015-06-04 10:05:53 root python-kerberos-1.1-6.2.el6.x86_64
  565  2015-06-04 10:05:53 root python-krbV-1.0.90-3.el6.x86_64
  566  2015-06-04 10:05:53 root libproxy-python-0.3.0-4.el6_3.x86_64
  567  2015-06-04 10:05:53 root python-iwlib-0.1-1.2.el6.x86_64
  568  2015-06-04 10:05:53 root gnome-python2-2.28.0-3.el6.x86_64

标签:10,06,04,记录,05,53,linux,2015,history
From: https://blog.51cto.com/u_15941303/6007563

相关文章

  • linux回炉第二十四天
    mysqldump--helpmysqldump-uroothellodb|gzip>/data/backup_mysql.sql.gzmysqldump-uroot-Bhellodb>/data/mysql_backup1.sqlmysqldump-uroot-A>/data/mysq......
  • Linux 目录遍历文件
    #include<stdio.h>#include<string.h>#include<dirent.h>intmain(){DIR*dir_info;//目录指针structdirent*dir_entry;//目录项信息指针//打开一个待扫描的目录......
  • QSqlite 使用记录
    QSqlite使用记录一个QSqlDatabase的实例表示着一个对数据库的连接setDatabaseName("");指定文件路径,就可以操作指定的文件插入sqlite在没有显式使用事务的时候会为每......
  • 【Linux操作系统】如何实现Linux中软件安装进度条?
    文章目录​​一.回车与换行​​​​二.缓冲区问题​​​​三.倒计时小程序​​​​四.进度条小程序​​Linux下安装软件时,经常会看到类似上图的进度条,今天带大家用C语言来演......
  • 【Linux操作系统】自动化编译make和Makefile
    文章目录​​一.make/makefile简介​​​​1.什么是make,makefile?​​​​2.为什么要有make/makefile?​​​​二.makefile文件规则​​​​1.基本规则​​​​2.举一个例......
  • 忘记gitlab的root的密码如何修复(Linux环境)
    一进入到gitlab服务器,输入gitlab-railsconsoleproduction命令进入到gitlab控制台gitlab-railsconsoleproduction二输入如下指令获取root用户变量user=User.......
  • jQuery事件(事件委托/优化添加删除表格记录/事件委托delegate中的this对应关系)
    视频为什么要用事件委托:新增的dom元素没有对应点击事件。子元素的事件交给父元素来代为处理。父元素要知道是哪个子元素发生的。<!DOCTYPEHTML><html><head><meta......
  • linux 中非root用户安装R
     001、下载R安装包:官网  [liujiaxin02@PC1r_package]$wgethttps://mirrors.tuna.tsinghua.edu.cn/CRAN/src/base/R-4/R-4.2.2.tar.gz--no-check-certificate......
  • 学习记录-建造者模式
    建造者模式建造者模式(BuilderPattern),也叫生成器模式,使用多个简单的对象一步一步构建成一个复杂的对象。这种类型的设计模式属于创建型模式,它提供了一种创建对象的最佳方......
  • linux中非root用户安装R:configure: WARNING: neither inconsolata.sty nor zi4.sty fo
     001、问题:configure:WARNING:neitherinconsolata.stynorzi4.styfound:PDFvignettesandpackagemanualswillnotberenderedoptimally  002、解决方......