In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Linux finds a specific program whereis
The whereis command is mainly used to find the program file and provide the location of the file's binary executable, source code files, and user manuals.
1. Find the command program
For example, find the touch command
[root@node1 /] # whereis touchtouch: / usr/bin/touch / usr/share/man/man1/touch.1.gz
The execution results are as follows:
If you only need to find the binaries of the touch command, you can use the-b option to do this:
[root@node1 /] # whereis-b touchtouch: / usr/bin/touch
The effect is as follows:
2. Find the application
For example, find a nginx service
[root@node1 /] # whereis nginxnginx: / usr/sbin/nginx / usr/lib64/nginx / etc/nginx / usr/share/nginx / usr/share/man/man8/nginx.8.gz
Find java
[root@node1 /] # whereis javajava: / 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, find the hello program
[root@node1 /] # whereis hellohello:
These are all the relevant knowledge points of this introduction. Thank you for your study and support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.