1. 程式人生 > >Linux 檢視歷史命令並執行

Linux 檢視歷史命令並執行

檢視歷史命令,並執行指定命令

[email protected]:~/owen/software/nginx-1.10.1$ history | grep 'configure'
1083  ./configure 
1109  ./configure --prefix=/usr/nginx
1110  ./configure --prefix=/usr/nginx
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 2064 history | grep configure [email protected]:~/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