history指令:
history 3,顯示最近使用的3條指令
[root@WebB-137 nginx-1.14.2]# history 3
396 history -d 395
397 history 10
398 history 3
[root@WebB-137 nginx-1.14.2]#
使用397這條指令
[root@WebB-137 nginx-1.14.2]# !397
history 10
390 history -d 389
391 history
392 history 5
393 history -d 392
394 history
395 history 10
396 history -d 395
397 history 10
398 history 3
399 history 10
其他選項: