[Linux] Linux/Mac OS history命令 添加时间,用户,ip

history命令能够查看指令的历史记录。history能够加上参数,好比时间、用户和IP等等。web echo 'export HISTTIMEFORMAT="%F %T `whoami` "' >> /etc/profile 执行source生效:bash source /etc/profile
相关文章
相关标签/搜索