操作不被history记录关闭history1 set +o history 重新开启history1 set -o history 清除指定history记录1 history -d <num> 清除所有history记录1 history -c