In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to learn all kinds of knowledge by yourself under Linux. It is very detailed and has certain reference value. Friends who are interested must finish it.
How to really feel isolated and helpless when you want to do something with Linux one day, you must learn to use the man command.
What is man?
First of all, type man man on the command line and enter to have a look. You will understand after reading the two English paragraphs of NAME and DESCRIPTION. Man is the command to display Unix/Linux 's online manual.
Typically, man is used to view help manuals for commands, functions, or files, and it can also display files in gzip compressed format.
What is Unix/Linux 's online manual?
In general, all resources under Linux are distributed with the operating system, including kernel source code. The online manual is a good manual for all the resources of the operating system. You can man this command when you do not understand the command, you can man this function when writing a function that will not be used, and even when you do not understand a file, you can man this file (of course, this file is generally a configuration file used by the system or a configuration file used by a system service).
Location of man manual resources
In general, the resources of man are mainly located under the / usr/share/man directory. But if you look closely at the results of man man and are interested in man.config and man man.config, you will understand that its location is determined by the MANPATH variable, and you can more / etc/man.config to see where there is the location of man content.
Composition of the content of a single man resource
Generally speaking, man content is divided into NAME, SYNOPSIS, DESCRIPTION, OPTIONS, SEE ALSO, BUGS and so on. NAME is a simple description of the content (usually a definition of a sentence); SYNOPSIS is a general description, for a command, it is the syntax of a command, for a function, it is a definition of a function; DESCRIPTION is a concise introduction of this content, giving you a general impression of what you are looking up; OPTIONS is a detailed explanation of the command parameters when querying a command; SEE ALSO is to give you some hints, equivalent to introducing some reference content. BUGS indicates what BUG exists in the command or function, reminding you to prevent it from happening.
Composition of man resources
Many friends said that man resources are divided into eight chapters, I think this is only the main part, you ls / usr/share/man take a look at it, there are man1, man2... There are 8 directories such as man7 and man8, but there are other directories besides this, not to mention other directories stipulated by MANPATH. So the exact number of chapters is not fixed, but those with roughly the same content under Linux will fall under the same directory. For example, the directories of man1 and man2 are roughly system commands, while man3 is the use of some functions when programming, and man5 is the directory where the configuration file manuals are located. There are also some directories under the / usr/X11R*/man directory. According to what exactly to divide the catalogue? Each person understands differently according to the contents of each catalog.
The skills of using man Resources
1. If you see a ln.1.gz file in the directory set by the MANPATH variable (such as the / usr/share/man/man1 directory), you can man ln to see what the fileame command is.
2. The general use of man is man SECTION name, that is, to see the usage of name commands or functions in the specified chapter (SECTION). But if you don't know which chapter a command or function is in, you can check the name manual in all the MANPATH settings like man-a name. By default, man exits after the first man page is displayed, and all resources are searched if there is a-a parameter.
3. If you think it is too difficult to read under Linux or you are not good at English and want to help with "XX Ciba" or "XX Fast Translation", then you can save the man manual as a text file and then share ftp or samba to windows to open it. Just use this command:
Man man | col-bfp > man.txt
Generate a man.txt file from the man manual. Look at it with the help of translation tools.
4, write your own man resources, if you write a very good function or command added to the system, such as you wrote a MyDate command to display the format you need date, then you can also write a manual for your MyDate command. Very simple, you edit (with vi or any other text editing tool can) a MyDate file, which is the instructions for the use of your command, and then use the gzip MyDate command to compress the manual to generate a MyDate.gz, and then copy this file to a directory specified by MANPATH, such as cp MyDate.gz / usr/share/man/man2, later you can man MyDate to view your command usage.
5. What can you do after installing a Linux operating system? You want to study system management? Just man all the commands in the / usr/share/man1 and / usr/share/man2 directories, and you are definitely a system management expert! Want to learn C programming? Man commands such as gcc, Gmail +, gdb, etc. Or you can ls each bin directory, such as / usr/bin, / bin, / sbin, etc., and then man what you see.
The biggest resource for learning Linux is on your computer. If you don't install it, it must be on your CD. Want to learn the kernel? Go and have a look at everything under the / usr/src/linux* directory.
The above is all the contents of the article "how to self-learn all kinds of necessary knowledge under Linux". Thank you for reading! Hope to share the content to help you, more related 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.