Centos History 命令历史记录添加执行时间
发表于:2024-09-23 作者:千家信息网编辑
千家信息网最后更新 2024年09月23日,Centos History 命令历史记录添加执行时间在/etc/profile尾部加入以下环境变量 export HISTTIMEFORMAT='%F %T'执行环境变量生效source /etc/
千家信息网最后更新 2024年09月23日Centos History 命令历史记录添加执行时间
Centos History 命令历史记录添加执行时间
在/etc/profile尾部加入以下环境变量
export HISTTIMEFORMAT='%F %T'
执行环境变量生效
source /etc/profile
测试结果
[root@localhost network-scripts]# history 1 2019-12-06 13:57:01 free -m 2 2019-12-06 13:57:32 cat /proc/cpuinfo 3 2019-12-06 13:57:39 top 4 2019-12-06 13:58:19 ll 5 2019-12-06 13:58:27 cd /etc/sysconfig/network-scripts/ 6 2019-12-06 13:58:27 ls 7 2019-12-06 13:58:28 ll 8 2019-12-06 13:58:41 ip addr 9 2019-12-06 13:58:46 vim ifcfg-em1 10 2019-12-06 13:58:51 yum install vim -y 11 2019-12-06 14:01:23 history 12 2019-12-06 14:04:15 vim /etc/profile 13 2019-12-06 14:04:48 source /etc/profile 14 2019-12-06 14:04:50 history 15 2019-12-06 14:05:13 vim /etc/profile 16 2019-12-06 14:05:22 source /etc/profile 17 2019-12-06 14:05:23 history [root@localhost network-scripts]# # 命令的间隔可以在定义环境变量时自已调整
变量
环境
命令
历史
时间
尾部
结果
测试
调整
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
塔式服务器比机架服务器更为主流
小霸王读不了数据库
电讯盈科小巨人软件开发公司
网络编程服务器读取客户端信息
互联网与农业科技
北京诚信网络技术咨询联系人
im 服务器集群
计算机网络技术在机房上课吗
k3的数据库开放什么端口
我的世界1.12服务器登录
眼镜行业软件开发怎么办
单招面试计算机网络技术自我介绍
app重置数据库
自考网络安全管理书
住院数据库管理系统
上海雷腾软件开发有限公司
绝处逢生如何刷新服务器
java定时扫描数据库
广州五叶草互联网科技
七星彩票软件开发公司
0几年的QQ数据库
密码学和网络安全
郑州网络安全大会奇安信
安卓使用网络技术的书
金铲铲之战不同服务器可以联机吗
网络安全专题党课讲稿
原神国际服什么服务器好
服务器流量测试工具
数据库建模的教程
少儿频道网络安全