Linux——给history命令加上用户和时间
来源:互联网 发布:js 数组 sort 编辑:程序博客网 时间:2024/05/29 03:40
可以在root下输入如下命令
echo 'export HISTTIMEFORMAT="%F %T `whoami` "' >>/etc/profile
执行source生效:
source /etc/profile
然后在使用history时,就会在前面显示时间和用户了。
0 0
- Linux——给history命令加上用户和时间
- Linux 给History命令加上时间和IP显示
- 如何给history命令记录加上时间戳
- linux在history上加上命令执行时间,用户和IP源等
- linux给history命令添加时间
- Linux命令——history查看用户操作记录及时间
- [Linux] Linux/Mac OS history命令 添加时间,用户,ip
- Linux 配置 history 命令显示操作时间、用户和登录 IP
- ubuntu History命令显示操作时间、用户和登录IP
- Linux history命令加入时间
- Linux 给history加时间戳
- linux的history命令显示操作用户、显示操作时间、命令
- Linux history时间用户ip设置
- Linux history配置时间戳、执行用户
- Linux history时间用户ip设置
- linux history 记录 时间 ip 登录用户
- Linux下查看用户登陆后的操作记录及history命令显示时间
- Linux下查看用户登陆后的操作记录及history命令显示时间
- DEDECMS织梦模板制作手册(超详细)
- JDK卸载和安装
- YII2登录页面以及优化
- 前端基础进阶(十三):透彻掌握Promise的使用,读这篇就够了
- solr 配置中文分词
- Linux——给history命令加上用户和时间
- Mybatis的Executor介绍(一)
- 批量修改文件名
- 人人面经与不守诚信的人人公司
- hdu 2024 C语言合法标识符
- Material Design for Android
- java 传递可变参数
- 在ROS中添加多个机器人模型
- 前端基础进阶(十四):es6常用基础合集