history命令不显示时间

有时候系统的history命令不显示时间,可是咱们想查看命令执行的时间是何时怎么办,下面的命令能够解决:ide export HISTTIMEFORMAT="%F %T"blog 不过这种是临时解决办法,若是想永久生效就把这段添加到/etc/profile里边,而后执行source /etc/profile使之生效it 转载于:https://blog.51cto.com/xiaoxiaozhou
相关文章
相关标签/搜索