Linux finds a specific program where is The whereis command is mainly used to find program files and provide the storage location of the binary executable file, source code file, and user manual of this file. 1. Find command program For example, look for the touch command [root@node1 /]# whereis touch touch: /usr/bin/touch /usr/share/man/man1/touch.1.gz The execution effect is as follows: If you only need to find the binary file of the touch command, you can use the -b option: [root@node1 /]# whereis -b touch touch: /usr/bin/touch The effect is as follows: 2. Find the application For example, find the nginx service [root@node1 /]# whereis nginx nginx: /usr/sbin/nginx /usr/lib64/nginx /etc/nginx /usr/share/nginx /usr/share/man/man8/nginx.8.gz Find java [root@node1 /]# whereis java java: /usr/java/jdk1.8.0_191/bin/java /usr/local/jdk1.8.0_191/bin/java If the queried program does not exist, an empty string is returned. For example, to find the hello program [root@node1 /]# whereis hello hello: The above are all the relevant knowledge points introduced this time. Thank you for your learning and support for 123WORDPRESS.COM. You may also be interested in:
|
<<: Tutorial on installing mysql under centos7
Table of contents Mind Map Simple understanding E...
My97DatePicker is a very flexible and easy-to-use...
Table of contents Overview Environment Preparatio...
1. Prepare in Advance For your convenience, I cre...
Table of contents Preface How to encapsulate a To...
Table of contents Install and configure dnsmasq I...
Table of contents Preface step Preface Today I fo...
Preface To delete a table, the command that comes...
The textarea tag size is immutable Copy code The c...
Shtml and asp are similar. In files named shtml, s...
When you log in to MySQL remotely, the account yo...
Table of contents 1. Two-way binding 2. Will the ...
Table of contents 1. Overview 2. Use docker to de...
This article uses examples to illustrate the impa...
This article introduces several methods of implem...