history
USER=root
USER_IP=x.x.x.x
if [ "" = "" ]; then
USER_IP=localhost
fi
if [ ! -d /var/log/history ]; then
mkdir /var/log/history
chmod 777 /var/log/history
fi
if [ ! -d /var/log/history/root ]; then
mkdir /var/log/history/root
chmod 300 /var/log/history/root
fi
export HISTSIZE=4096
DT=20180917_11:10:59
export HISTFILE="/var/log/history/root/root@_"
chmod 600 /var/log/history/root/*history* 2>/dev/null

相关文章:

  • 2021-11-28
  • 2022-12-23
  • 2021-12-12
  • 2021-10-03
  • 2021-09-19
猜你喜欢
  • 2022-03-07
  • 2022-12-23
  • 2022-12-23
  • 2022-01-26
  • 2021-05-19
  • 2021-06-16
相关资源
相似解决方案