The method for Linux to view historical commands and execute them
View historical commands and execute specified commands
Owen@owen:~/owen/software/nginx-1.10.1$ history | grep 'configure'1083. / configure 1109. / configure-- prefix=/usr/nginx1110. / configure-- prefix=/usr/nginx2058. / configure-- prefix=/usr/local/nginx-- with-openssl=/home/owen/owen/software/openssl-1.0.2m-- with-http_ssl_module-- add-dynamic-module=/home/owen/owen/project/src/ngx_my_test_study2064 history | grep configure owen Owen:~/owen/software/nginx-1.10.1 $! 2058./configure-- prefix=/usr/local/nginx-- with-openssl=/home/owen/owen/software/openssl-1.0.2m-- with-http_ssl_module-- add-dynamic-module=/home/owen/owen/project/src/ngx_my_test_study
The above Linux view the history of the command and the implementation of the method is the editor to share with you all the content, I hope to give you a reference, but also hope that you support more.