Linux查詢之前過的指令:hostory

指令:history

執行結果:

root@ubuntu:~# history
    1  apt update
    2  uname -r
    3  reboot
    4  clear
    5  pip
    6  pip2
    7  pip3