In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
In this issue, Xiaobian will bring you about the use of the whereis command in Linux. The article is rich in content and analyzed and described from a professional perspective. After reading this article, I hope you can gain something.
The Linux whereis command is used to find files.
This command looks for files that match the criteria in a specific directory. These files should be source code, binary files, or help files.
This command can only be used to find binary files, source code files and man manual pages. Generally, the locate command is used to locate files.
whereis syntax
whereis [-bfmsu][-B ...] [-M ...] [-S ...] [Documents...]
whereis parameter
-b Only binary files are found.
-B Only looks for binary files in the directory of settings.
-f Do not display path names before file names.
-m Only find description files.
-M only looks for description files in the directory of settings.
-s Finds only original code files.
-S Only looks for original code files in the directory of settings.
-u Finds files that do not contain the specified type.
whereis instance
Use the command "whereis" to view the position of the command "bash" and enter the following command:
$ whereis bash
When the above command is executed, the output message is as follows:
bash:/bin/bash/etc/bash.bashrc/usr/share/man/man1/bash.1.gz
Note: The above output information from left to right is the query program name, bash path, bash man page path.
If the user needs to query the binary file or help file separately, use the following command:
$ whereis -b bash $ whereis -m bash
The output information is as follows:
$ whereis -b bash #binary program showing bash command bash: /bin/bash /etc/bash.bashrc /usr/share/bash # bash command binary program address $ whereis -m bash #Show bash command help file bash: /usr/share/man/man1/bash.1.gz #bash command help file address The above is a small series for everyone to share the Linux whereis command use method, if just have similar doubts, may wish to refer to the above analysis to understand. If you want to know more about it, please pay attention to the industry information channel.
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.