history

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

相關文章
相關標籤/搜索