Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method for Linux to view historical commands and execute them

Shulou Source: shulou.com Published: 2022-06-02 02:29:43 11月13日 Update

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.

Tags: Command history method content that is reference support Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Huawei Redmi Shulou Technology Apple