history

显示代时间戳的记录

export HISTTIMEFORMAT='%F %T '
history | more

更多参考 https://blog.51cto.com/leonkuo/950208


who

查看当前在线

who

查看历史登录

who /var/log/wtmp