In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to use the whereis command in the Linux system, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
The Linux whereis command is used to find files. This directive looks for files that meet the criteria in a specific directory. These files should belong to the original code, binaries, or help files.
One. Command format: whereis [- bfmsu] [- B...] [- M...] [- S...] [file.] Command function: whereis command is to locate the location of executable files, source code files and help files in the file system. The properties of these files should belong to the original code, binaries, or help files. Whereis programs also have the ability to search source code, specify alternate search paths, and search for unusual items. If the parameter is omitted, all information is returned.
Command parameter: parameter description-b locates the executable file. -m locate the help file. -s locate the source code file. -u search for files under the default path other than executable files, source code files, and help files. -B specifies the path to search for executable files. -M specifies the path to search for help files. -S specifies the path to search for source code files. 4. Use example: 1: view the location command of the directive "bash":
Whereis bash output:
Hc@hc-virtual-machine:~$ whereis bash bash: / bin/bash / etc/bash.bashrc / usr/share/man/man1/bash.1.gz description: the above output information from left to right is the program name of the query, the bash path, and the man man page path of bash.
2: displays the address command of the binary program of the bash command:
Whereis-b bash output:
Hc@hc-virtual-machine:~$ whereis-b bash bash: / bin/bash / etc/bash.bashrc3. Displays the help file address command for the bash command:
Whereis-m bash output:
Hc@hc-virtual-machine:~$ whereis-m bash bash: / usr/share/man/man1/bash.1.gz above is all the content of the article "how to use whereis commands in Linux system". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow 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.