In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
The content of this article mainly focuses on the use of Linux common commands whereis commands. The content of the article is clear and clear. It is very suitable for beginners to learn and is worth reading. Interested friends can follow the editor to read together. I hope you can get something through this article!
The Linux common command whereis command is used to find files, and this directive looks for files that meet the criteria in a specific directory. These files should belong to the original code, binary files, or help files, this instruction can only be used to find binary files, source code files and man man pages, the general file location needs to use the locate command, the following for you to share the specific use of Linux commands whereis commands.
Syntax whereis [- bfmsu] [- B...] [- M...] [- S...] [file.]
Parameters:
-b looks for only binaries.
-B only looks for binaries in the set directory.
-f does not display the path name before the file name.
-m only looks for description files.
-M only looks for description files in the set directory.
-s only looks for the original code file.
-S only looks for the original code file in the set directory.
-u looks for files that do not contain the specified type.
Example
Use the directive "whereis" to view the location of the directive "bash" and enter the following command:
$whereis bash
After the above instruction is executed, the output information 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 program name of the query, the bash path, and the man man page path of bash.
If you need to query binaries or help files separately, you can use the following command:
$whereis-b bash $whereis-m bash
The output information is as follows:
$whereis-b bash # displays the binary address of the bash command bash: / bin/bash / etc/bash.bashrc / usr/share/bash # bash command $whereis-m bash # displays the help file address of the bash command bash: / usr/share/man/man1/bash.1.gz # bash command what is the Linux system Linux It is a UNIX-like operating system that is free to use and spread freely. Is a POSIX-based multi-user, multi-tasking, multi-threaded and multi-CPU operating system, using Linux to run major Unix tools, applications and network protocols.
Thank you for your reading. I believe you have a certain understanding of "how to use whereis commands in Linux". Go to practice quickly. If you want to know more about it, you can follow the website! The editor will continue to bring you better articles!
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.