零散笔记
2019年11月7日
设置Linux中history命令显示时间:
在文件/etc/profile中写入下面的语句,也可以直接使用vi打开编写。修改这个文件堆所有用户生效。
# 写入语句到/etc/profile
echo 'HISTTIMEFORMAT="%F %T "' >> /etc/profile
# 使其生效
source /etc/profile
posted on 2019-11-07 09:55 huixiong900 阅读(63) 评论(0) 收藏 举报
浙公网安备 33010602011771号