Linux 檢視歷史命令並執行
阿新 • • 發佈:2019-02-15
檢視歷史命令,並執行指定命令
[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