Linux 给History命令加上时间和IP显示

echo  'export HISTTIMEFORMAT ="%F %T `who -u am i 2>/dev/null| awk '{print $NF}'|sed -e 's/[()]//g'` "  >> /etc/profile  而后 source /etc/profile 验证下 history
相关文章
相关标签/搜索