In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use Linux info". Friends who are interested might as well take a look. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn how to use Linux info.
▼
-01-
Help | not a panacea
1. Overview:
The help command is a very useful but not very useful command. You can use it to get some information, but not all of it.
two。 Direct input:
Here is what happens when you enter the help command directly.
If you are not very good at English, or are not used to using the English interface, you can install the Chinese version of Ubuntu, enter help, if there is a Chinese message to display, then the Chinese message will be displayed.
From the above, we can know:
GNU bash, version 4.3.48 (1)-release (x86_64-pc-linux-gnu)
These shell commands are defined internally. Enter `help' to get a list.
Enter the `help name'to get more information about the function `name'.
Use `info bash' to get more general information about shell.
Use `command-k'or `info' to get more information about commands that are not in the list.
3.help [Command] View help for help:
As you can see from the above, help can take three parameters-d-m and-s.
As for PATTERN, that's the order you're looking for. This is just a case study of help itself.
4.help-d [command]:
For example: help-d help
5.help-m [command]
For example: help-m help
Man is manual, manual. The next topic will explain the problem of man in detail. In this, there is more relevant content in the format. In fact, it is still the content of help help in essence.
6.help-s [command]
For example: help-s help and help-s history
This is a quick command that allows you to skip large sections of descriptive information. However, it is necessary to take a look at the description information.
Press: the mode here generally refers to what you see when you use help directly. This is the default shell command.
-02-
Man | [manual]
1. Overview:
For most of the unfamiliar commands you normally use, you use man or info to view them.
two。 This is followed by using man:
If you don't take a parameter, it throws a question so that you have to take a parameter.
two。 Now let's use man to man itself:
For example: man man
Such an interface will appear to temporarily cover the entire window.
Look at the bottom sentence: press h for help or Q to quit.
Here, generally speaking, you should learn vim first and then use man, because the operation of this interface is the same as vim. But it doesn't matter. It would be nice to explain it once here.
3. Simple operation of the manual page:
The arrow keys up and down control the scrolling up and down of the page.
Colleagues j and k keys can also control the page up and down scrolling, generally recommended to use j and k.
H key to call out man's help.
Q key to exit the page at this time back to the command.
You can also see how to do it through h.
Ctrl + f is used to turn to the next page and function as PgDn.
Ctr + b is used to turn to the previous page and works like PgUp.
/ match content-> enter can quickly search what you are looking for, use n to the next search location, and use N to jump to the previous search location.
The line number can be modulated by the established line
4. Type of man page:
one
Executable program or shell command
two
System calls (functions provided by the kernel)
three
Library calls (functions in a library)
four
Special files (usually located in / dev)
five
File formats and specifications, such as / etc/passwd
six
Games
seven
Miscellaneous (including macro packages and specifications, such as man (7), groff (7))
eight
System management commands (usually for root users only)
nine
Kernel routine
The numbers in parentheses in the upper left corner of the picture below.
Such as entering: man 3 printf
The manual of printf in C language is displayed at this time.
As the manual contains a lot of content, more and more readers need to read the manual themselves. If because English is not suitable for reading, you can privately poke the author to get the Chinese content.
-03-
Info | [information]
1. Overview:
Info is information, which gets more information. I really don't want to say much about this command, because it is not needed in most cases. But this is a useful command. More detailed than man, worthy of the name of detailed information, but in most cases man is more convenient, unless the man manual is not very friendly or too brief for you.
two。 Having learned man before, let's use man info:
3. If you use info directly or use info info:
-04-
Whatis | what is it?
1. Overview: the whatis command is used to display man page instructions.
two。 Use whatis directly:
It doesn't mean anything!
3. Use whatis whatis:
4. For example:
In the man section, we talked about the type of man manual. So here's a 1 and a 7-century whatis will print all of this out.
Another example is:
Compared with the man section, there happens to be a type 3.
At this point, I believe you have a deeper understanding of "how to use Linux info". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.