histroy 命令
history 5 #查看历史执行记录后 5 条
!10 #执行历史记录第 10 条命令
!! #执行上一条命令 或者 !-1
用Ctrl+R搜索历史命令
参考:
https://www.linuxprobe.com/history-15-cases.html
histroy 命令
history 5 #查看历史执行记录后 5 条
!10 #执行历史记录第 10 条命令
!! #执行上一条命令 或者 !-1
用Ctrl+R搜索历史命令
参考:
https://www.linuxprobe.com/history-15-cases.html