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
Find the installation directory of VirtualBox. Th...
Official website explanation: When a component is...
After installing a centos8 service under vmware a...
Table of contents Introduction The following is a...
Preface Everyone knows that many sites now charge...
Learning to use CSS3's 3D effects to create a...
This article uses an example to illustrate the us...
Cross-domain solutions jsonp (simulate get) CORS ...
Problem explanation: When using the CSS animation...
Table of contents Hbase installation and configur...
Web Application Class 1. DownForEveryoneOrJustMe ...
This article records the process of upgrading MyS...
When creating a tomcat server on a local eclipse,...
Table of contents 1. Memory model and runtime dat...
Linux installation JDK1.8 steps 1. Check whether ...