linux 历史 命令 时间戳 message 记录 用户 时间 栏目 Linux 繁體版
原文   原文链接

在/etc/profile或/etc/profile.d/下,或者在/etc/init.d/rc.local里加下面一段命令:ide

export HISTTIMEFORMAT="%F %T whoami "
export PROMPT_COMMAND='{ msg=$(history 1 | { read x y; echo $y; }); logger "[euid=$(whoami)]":$(who am i):[pwd]"$msg";}'ui

相关文章
相关标签/搜索
每日一句
    每一个你不满意的现在,都有一个你没有努力的曾经。
本站公众号
   欢迎关注本站公众号,获取更多信息