让history加上时间,加在/etc/bashrc文件上

vi /etc/bashrc

加入下面语句,然后重新登录就可生效

# add history time
export HISTTIMEFORMAT="%F %T "
Tags: ,
linux小记 | 评论(0) | 引用(0) | 阅读(65347)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
昵称   密码   游客无需密码
网址   电邮   [注册]
               

验证码 请输入左侧的字母,不区分大小写