history 查看历史命令spa
history -c 清除历史命令配置
tab 补全命令file
!3 执行第三条历史命令配置文件
cat /etc/profile 查看历史配置文件,固然也能够修改历史保存命令个数tab
if [ "$EUID" = "0" ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
else
pathmunge /usr/local/sbin after
pathmunge /usr/sbin after
pathmunge /sbin after
fi文件
HOSTNAME=`/bin/hostname 2>/dev/null`
HISTSIZE=1000
if [ "$HISTCONTROL" = "ignorespace" ] ; thenhistory