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
The CSS position attribute specifies the element&...
The database enables slow query logs Modify the c...
1. Background 1.1 Problems A recent product testi...
Replication is to transfer the DDL and DML operat...
Anti-shake: Prevent repeated clicks from triggeri...
Preface: When you execute a SQL statement in MySQ...
1. Background When the Docker service is started,...
Source of the problem As we all know, all network...
Recently, due to the need to test security produc...
Table of contents Preface 1. Reasons: 2. Solution...
Table of contents For example: General writing: S...
https base port 443. It is used for something cal...
I've seen people asking before, how to add sty...
This article example shares the specific code of ...
View the dependent libraries of so or executable ...