为了防止通过history查看历史操作信息,需设置禁用history命令。具体操作步骤如下:
vim /etc/profile
export HISTFILESIZE=0 readonly HISTFILESIZE