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