In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How can the whatis command be used in a Linux system? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
01. Command Overview
The whatis command looks for keywords in specific database files that contain short descriptions of system commands and sends the results to standard output. The content of the search must exactly match the keyword before it is output. The whatis database file is created with the / usr/sbin/makewhatis command.
02. Command format
Whatis [OPTION...] Key words...
03. Common option
one
two
three
four
five
six
seven
eight
nine
ten
eleven
twelve
thirteen
fourteen
fifteen
sixteen
Usage: whatis [OPTION...] Key words.
-d,-- debug outputs debugging information
-v,-- verbose outputs detailed warning messages
-r,-- regex interprets each keyword as a regular expression
-w,-- wildcard keywords include wildcards
-l,-- long do not truncate the output according to the terminal width
-C,-- the config-file= file uses this user settings file
-L,-- the locale= region defines the locale used for this search
-m,-- systems= system use manual pages from other systems
-M,-- manpath= path sets the path of the search manual page to "path"
-s,-- sections= list,-- section= list
Search only these sections (colon-separated)
-help give this help list.
-- usage give a short usage message
-V-- version print program version
04. Reference exampl
one
two
three
four
five
six
seven
eight
nine
ten
eleven
twelve
thirteen
fourteen
fifteen
sixteen
seventeen
eighteen
nineteen
[deng@localhost ~] $whatis ls
Ls (1)-lists the contents of the directory
Ls (1p)-list directory contents
[deng@localhost ~] $whatis cp
Cp (1)-copy files and directories
Cp (1p)-copy files
[deng@localhost ~] $whatis chown
Chown (1)-modify the file owner and group
Chown (1p)-change the file ownership
Chown (2)-change ownership of a file
Chown (3p)-change owner and group of a file
[deng@localhost ~] $whatis man
Man (1)-formats and displays the online help man page
Man (7)-Macros for formatting man pages
Man (1p)-display system documentation
[deng@localhost ~] $
If you need to rebuild the database of information related to this command, execute the following command:
one
[root@localhost ~] # makewhatis
Note: Centos7.5 does not support this command at this time.
After reading the above, have you mastered how the whatis command is used in the Linux system? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Original link: https://blog.csdn.net/dengjin20104042056/article/details/95239198
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.