history命令查看操作时间
来源:互联网 发布:产品在淘宝没有展现 编辑:程序博客网 时间:2024/05/31 18:58
- export HISTTIMEFORMAT="%F %T `whoami` " 给history加上时间戳
- 展示:
- 1013 2016-08-08 12:15:40 root y
1014 2016-08-08 12:15:41 root df
1015 2016-08-08 12:16:00 root history
1016 2016-08-08 12:17:13 root export HISTTIMEFORMAT="%F %T `whoami` "
1017 2016-08-08 12:17:14 root history
1018 2016-08-08 12:17:24 root df
1019 2016-08-08 12:17:26 root history
1020 2016-08-08 12:17:54 root echo
1021 2016-08-08 12:17:59 root source /etc/profile
1022 2016-08-08 12:18:01 root history - 加入配置的话使用 echo 'export HISTTIMEFORMAT="%F %T `whoami` "' >> /etc/profile
- 再 source /etc/profile 即可
0 0
- history命令查看操作时间
- history命令显示操作时间
- Linux 查看history的操作时间
- Linux下查看用户登陆后的操作记录及history命令显示时间
- Linux下查看用户登陆后的操作记录及history命令显示时间
- Linux下查看用户登陆后的操作记录及history命令显示时间
- Linux命令——history查看用户操作记录及时间
- history查看历史操作记录,并显示操作时间
- 【history】查看命令历史
- ubuntu History命令显示操作时间、用户和登录IP
- linux中history命令显示操作执行的时间配置
- linux中history命令显示操作执行的时间配置
- Linux查看历史命令 history
- Linux查看历史命令 history
- Linux查看历史命令 history
- linux查看历史命令history
- linux查看历史命令history
- linux查看历史命令history
- Dubbo结果缓存
- 把一个图片裁剪成圆形或者自定义的图形
- 【HDU】-1260-Tickets(简单DP)
- Servlet-过滤器
- shell语句备份mysql数据库表内容,生成sql文件的tar包
- history命令查看操作时间
- OpenCV-2.RGB Normalized
- Hrbust 1491 游河【最大流模板题】
- Codeforces Round #366 (Div. 2) C. Thor
- Android使用SharedPreferences实现本地轻量存储,ToggleButton,TextView边框详解
- 基于matlab实现图像的直方图均衡
- eclipse在ubuntu16.04下cpu占用率高的问题
- Spring data jpa 自定义SQL语句遇到错误Not supported for DML operations
- C++ 操作Excel问题