a)?查看history保存的條數(shù):$HISTSIZE表锻,默認3000
b)?查看history保存的文件:cat /root/.bash_history
c)?執(zhí)行history命令:!+id奖亚,id為歷史命令的ID號
d)?執(zhí)行!!:執(zhí)行上一次的命令
e)?清除歷史記錄:-c
f)?恢復歷史記錄:-r
a)?查看history保存的條數(shù):$HISTSIZE表锻,默認3000
b)?查看history保存的文件:cat /root/.bash_history
c)?執(zhí)行history命令:!+id奖亚,id為歷史命令的ID號
d)?執(zhí)行!!:執(zhí)行上一次的命令
e)?清除歷史記錄:-c
f)?恢復歷史記錄:-r