Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Summary of basic help query commands under Linux system

2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the "basic help query command summary under the Linux system". In the daily operation, I believe that many people have doubts about the basic help query command summary under the Linux system. The editor has consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "the basic help query command summary under the Linux system". Next, please follow the editor to study!

Command name-help | more

Displays a brief command help (valid for most commands). For example, try using "cp-help | more". "--help" is similar to the "/ h" switch under DOS. When the output exceeds one screen, it is necessary to add "more".

Man command

Displays the help manual for the corresponding command system. Enter "Q" to exit the browser. If you set advanced options, try typing "man man". The command "info command name" is similar to the command "man command name", but contains more up-to-date information. Help manuals can be a little difficult for beginners to read-because they were originally written for UNIX programmers. Use "Command name-help" to get a command help that is simple and easy to digest. Some programs come with README files or other help files-I suggest you take a look at the directory / usr/share/doc. To display command help in the specified section, you can use the command "man 3 exit", which displays only the "third part" of the exit command help manual, or the command "man-an exit", which displays "all parts" of the exit command help manual. All parts of the exit command help are: 1-user commands; 2-system calls; 3-subcalls; 4-devices; 5-file formats; 6-games; 7-miscellaneous; 8-system administration; 9-new content. To print the complete command help, you can use the command "man command name | col-b | lpr" (optional col-b removes all backspace keys and some difficult special characters).

Because most programs come with their own manuals, you can get help through the man command. After execution, press Q on the man page page to exit.

Get help from ls

The code is as follows:

$man ls

Check how many manuals of the same name (for different aspects)

The code is as follows:

$man-f ls

Ls (1)-list directory contents

Ls (1p)-list directory contents

View specific manuals

The code is as follows:

$man 1p ls

Info command name

Displays help information for the specified command. One of the benefits of the info command in place of the man command is that it usually comes with the most recently updated system information. Use "spacebar" and "backspace" more often, otherwise you may be confused. Press the Q key to exit. If you don't think the method used for browsing works well-you can also try using the pinfo command to see if you prefer this alternative.

Unlike man, you can jump through each node like browsing a web page.

Start browsing from the front page of the document

The code is as follows:

$info

Get help from a specific program

The code is as follows:

$info program

Apropos command name

Give a list of help for the command name you enter.

Whatis command name

Give a short list that matches the name of the command you entered. The whatis command is a bit like apropos--, which uses the same database. The difference is that whatis searches for keywords, while apropos searches for specific descriptions of keywords.

Help command name

Displays simple information about bash shell built-in commands. Using the help command without any arguments displays all bash shell built-in commands. The shortest bash shell built-in commands should include: alias, bg, cd, echo, exit, export, help, history, jobs, kill, logout, pwd, set, source, ulimit, umask, unalias, unset.

The code is as follows:

$man-- help # get help from man

$info-- help # get help from info

$ls-- help # get help from ls

Kdehelp

Kdehelpcenter

Valid under the X-terminal, use the command that works on your system. Use a graphical browser to display help for the entire system. In general, KDE help is achieved by placing the corresponding icons on the KDE dashboard. The equivalent GNOME help system can use the gnome-help-browser command.

At this point, the study on the "basic help query command summary under the Linux system" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical 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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report