1、修改/root/.bash_profile vim .bash_profile 在文件末尾加上 HISTTIMEFORMAT="%F %T " 2、重新读取文件 source .bash_profile 3、验证
配置环境变量,实现执行history的时候可以看到执行命令的时间
原创
©著作权归作者所有:来自51CTO博客作者love世界杯的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Linux环境变量配置全攻略
Linux环境变量配置;Linux读取环境变量;Linux环境变量配置方法.......
bash 环境变量 vim linux rhce