天天看点

Linux查看命令行历史命令记录

1. 通过

history

查看历史命令:

[[email protected] 桌面]$ history 
      which mpirun
      which gfortran
      which ifort
      which mpif90
      ip a s
      ifconfig
      ip a s
      ping baidu.com
      service httpd status
     systemctl status httpd.service
     httpd
     whereis httpd
     which httpd
     yum -y install httpd
     su root
   
           

继续阅读