日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > centos >内容正文

centos

Centos之帮助命令

發布時間:2025/3/15 centos 76 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Centos之帮助命令 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

幫助命令man ?(manual)

?

比如我們可以看下man命令的解釋

[root@localhost ~]# man man

?

?

?

?

?

?

?

?

?

?

?

?

?

?

MAN(1) ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Manual pager utils ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? MAN(1)

?

NAME

? ? ? ?man - an interface to the on-line reference manuals

?

SYNOPSIS

? ? ? ?man [-C file] [-d] [-D] [--warnings[=warnings]] [-R encoding] [-L locale] [-m system[,...]] [-M path] [-S list] [-e exten‐

? ? ? ?sion] [-i|-I] [--regex|--wildcard] [--names-only] [-a] [-u] [--no-subpages] [-P pager] ?[-r ?prompt] ?[-7] ?[-E ?encoding]

? ? ? ?[--no-hyphenation] ? [--no-justification] ? [-p ? string] ? [-t] ?[-T[device]] ?[-H[browser]] ?[-X[dpi]] ?[-Z] ?[[section]

? ? ? ?page ...] ...

? ? ? ?man -k [apropos options] regexp ...

? ? ? ?man -K [-w|-W] [-S list] [-i|-I] [--regex] [section] term ...

? ? ? ?man -f [whatis options] page ...

? ? ? ?man -l [-C file] [-d] [-D] [--warnings[=warnings]] [-R encoding] [-L locale] [-P pager] [-r prompt] [-7] [-E encoding] [-p

? ? ? ?string] [-t] [-T[device]] [-H[browser]] [-X[dpi]] [-Z] file ...

? ? ? ?man -w|-W [-C file] [-d] [-D] page ...

? ? ? ?man -c [-C file] [-d] [-D] page ...

? ? ? ?man [-?V]

?

DESCRIPTION

? ? ? ?man ?is the system's manual pager. Each page argument given to man is normally the name of a program, utility or function.

? ? ? ?The manual page associated with each of these arguments is then found and displayed. A section, if provided, ?will ?direct

? ? ? ?man to look only in that section of the manual. ?The default action is to search in all of the available sections, follow‐

?Manual page man(1) line 1 (press h for help or q to quit)

?

查看完 按 "q"鍵,離開

?

我們看下ls

man ls

?

?

這里其實有很多行 我們可以按鍵盤的向下鍵盤,來顯示下方隱藏的內容;

?

當然也可以搜索?

/ ?加搜索內容

比如搜索 -d

/-d

?

?

這里的1是man的級別; 這里的1是查看命令的幫助

?

1:查看命令的幫助

2:查看可被內核調用的函數的函數的版主

3:查看函數和函數庫的幫助

4:查看特殊文件的幫助(主要是/dev目錄下的文件)

5:查看配置文件的幫助

6:查看游戲的幫助

7:查看其他雜項的幫助

8:查看系統管理員可用命令的幫助

9:查看和內核相關文件的幫助

?

查看命令擁有哪個級別的幫助

man -f 命令

相當于

whatis 命令

舉例

man -5 passwd

man -4 null

man -8 ip

?

比如查看ls的命令級別

[root@localhost ~]# man -f ls

ls (1) ? ? ? ? ? ? ? - list directory contents

[root@localhost ~]#?

?

只有1個

?

[root@localhost ~]# man -f ip

ip (8) ? ? ? ? ? ? ? - show / manipulate routing, devices, policy routing...

[root@localhost ~]#?

?

?

查看和命令相關的所有幫助

man -k 命令

相當于

appropos 命令

例如

apropos passwd

?

[root@localhost ~]# man -k passwd

chpasswd (8) ? ? ? ? - 批量更新密碼

gpasswd (1) ? ? ? ? ?- 管理員 /etc/group 和 /etc/gshadow

grub2-mkpasswd-pbkdf2 (1) - Generate a PBKDF2 password hash.

lpasswd (1) ? ? ? ? ?- Change group or user password

pam_localuser (8) ? ?- require users to be listed in /etc/passwd

passwd (1) ? ? ? ? ? - update user's authentication tokens

sslpasswd (1ssl) ? ? - compute password hashes

pwhistory_helper (8) - Helper binary that transfers password hashes from ...

[root@localhost ~]#?

?

能把相關的命令都查詢出來;

?

轉載于:https://www.cnblogs.com/wishwzp/p/7113356.html

總結

以上是生活随笔為你收集整理的Centos之帮助命令的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。