Linux查看命令行歷史命令記錄

1. 經過history查看歷史命令:

[jiaozl@jiaozl 桌面]$ history 
    1  which mpirun
    2  which gfortran
    3  which ifort
    4  which mpif90
    5  ip a s
    6  ifconfig
    7  ip a s
    8  ping baidu.com
    9  service httpd status
   10  systemctl status httpd.service
   11  httpd
   12  whereis httpd
   13  which httpd
   14  yum -y install httpd
   15  su root
   16  vi