man命令--Linux命令应用大词典729个命令解读

内容来源于人民邮电出版社《Linux命令应用大词典》

讲述729个命令,1935个例子

学习Linux系统的参考书、案头书,遇到不懂的命令或命令选项一查即可

争取每天都发布内容


本文出自 “airfish2000” 博客,更多命令查看博客:

http://airfish2000.blog.51cto.com/10829608/1881635

man命令

使用man命令可以格式化并显示在线的手册页。man会列出一份完整的说明,其内容包括命令语法、各选项的意义以及相关命令等。

命令语法:

man [选项] [名称]

命令中各选项的含义如表所示。

表                                 man命令选项含义


选项


含义


-M <路径>


指定man手册页的搜索路径


-a


显示所有的手册页,而不是只显示第一个


-d


主要用于检查,如果用户加入了一个新的文件,就可以用这个选项检查是否出错,这个选项并不会列出文件内容


-f


只显示出命令的功能而不显示详细的说明文件,和whatis命令一样功能


-p


字符串设定运行的预先处理程序的顺序


-w


不显示手册页内容,只显示将被格式化和显示的文件所在位置

例:显示pwd命令的man手册页。

[[email protected]~]# man pwd

PWD(1)                           User Commands                          PWD(1)

NAME

pwd - print name of current/workingdirectory

SYNOPSIS

pwd [OPTION]...

DESCRIPTION

Print the full filename of the currentworking directory.

-L, --logical

use PWD from environment, even ifit contains symlinks

-P, --physical

avoid all symlinks

--help display this help and exit

--version

output version information andexit

NOTE: your  shell  may have its own version of pwd, whichusually supersedes the version described here. Please

refer to your shell’s documentation fordetails about the options it supports.

AUTHOR

Written by Jim Meyering.

REPORTINGBUGS

Report pwd bugs to [email protected]

GNU coreutils home page:<http://www.gnu.org/software/coreutils/>

General help using GNU software:<http://www.gnu.org/gethelp/>

Report pwd translation bugs to<http://translationproject.org/team/>

COPYRIGHT

Copyright   2010  Free  Software Foundation,  Inc.    License  GPLv3+:   GNU   GPL  version   3   or  later

<http://gnu.org/licenses/gpl.html>.

This is free software: you are free tochange and redistribute it.  There is NOWARRANTY, to the extent permitted

by law.

SEEALSO

getcwd(3)

The full documentation for pwd ismaintained as a Texinfo manual.  If theinfo  and pwd  programs  are properly

installed at your site, the command

info coreutils ‘pwd invocation‘

should give you access to the completemanual.

GNUcoreutils 8.4                 April2012                            PWD(1)

//可以按[q]键退出man手册页

例:查看/etc/passwd文件的man手册页。

[[email protected] ~]# man 5 passwd

PASSWD(5)                 Linux Programmer’s Manual                PASSWD(5)

NAME

passwd -password file

DESCRIPTION

Passwd  is a text file, that contains a list of thesystem’s accounts, giving for each account some useful infor-

mation likeuser ID, group ID, home directory, shell, etc. Often, it also contains the encrypted passwords  for

eachaccount.  It should have general readpermission (many utilities, like ls(1) use it to map user IDs to user-

names), butwrite access only for the superuser.

In the goodold days there was no great problem with this general read  permission.  Everybody  could  read the

encrypted passwords,  but  the hardware  was  too slow to crack a well-chosen password, andmoreover, the basic

assumptionused to be that of a friendly user-community. These days many people run some version of  the shadow

password  suite, where  /etc/passwd  has "x" instead of encrypted passwords, and the encrypted passwordsare in

/etc/shadowwhich is readable by the superuser only.

If theencrypted password, whether in /etc/passwd or in /etc/shadow, is an emptystring, login is allowed without

even  asking for a password.  Note that this functionality may beintentionally disabled in applications, or con-

figurable (forexample using the "nullok" or "nonull" arguments topam_unix.so).

........................(省略)

例:显示passwd命令和/etc/passwd文件手册页所在位置。

[[email protected] ~]# man -wpasswd

/usr/share/man/man1/passwd.1.gz

[[email protected] ~]# man -w5 passwd

/usr/share/man/man5/passwd.5.gz

时间: 2024-08-06 20:08:39

man命令--Linux命令应用大词典729个命令解读的相关文章

gpasswd命令--Linux命令应用大词典729个命令解读

内容来源于人民邮电出版社<Linux命令应用大词典> 讲述729个命令,1935个例子 学习Linux系统的参考书.案头书,遇到不懂的命令或命令选项一查即可 争取每天都发布内容 本文出自 "airfish2000" 博客,更多命令查看博客: http://airfish2000.blog.51cto.com/10829608/1892594 gpasswd命令 使用gpasswd命令可以设置一个组群的组群密码,或者是在组群中添加.删除用户. 命令语法: gpasswd [选

quotaoff命令--Linux命令应用大词典729个命令解读

内容来源于人民邮电出版社<Linux命令应用大词典> 讲述729个命令,1935个例子 学习Linux系统的参考书.案头书,遇到不懂的命令或命令选项一查即可 争取每天都发布内容 本文出自 "airfish2000" 博客,更多命令查看博客: http://airfish2000.blog.51cto.com/10829608/1892599 quotaoff命令 使用quotaoff命令可以关闭指定文件系统的磁盘配额空间限制. 命令语法: quotaoff [选项] [文件

dhcpd命令--Linux命令应用大词典729个命令解读

内容来源于人民邮电出版社<Linux命令应用大词典> 讲述729个命令,1935个例子 学习Linux系统的参考书.案头书,遇到不懂的命令或命令选项一查即可 争取每天都发布内容 本文出自 "airfish2000" 博客,更多命令查看博客: http://airfish2000.blog.51cto.com/10829608/1894367 dhcpd命令 使用dhcpd命令可以运行DHCP服务器. 命令语法: dhcpd [选项] [网络接口] 命令中各选项的含义如表所示

vmstat命令--Linux命令应用大词典729个命令解读

内容来源于人民邮电出版社<Linux命令应用大词典> 讲述729个命令,1935个例子 学习Linux系统的参考书.案头书,遇到不懂的命令或命令选项一查即可 争取每天都发布内容 本文出自 "airfish2000" 博客,更多命令查看博客: http://airfish2000.blog.51cto.com/10829608/1894368 vmstat命令 使用vmstat命令可以对操作系统的虚拟内存.进程.分页.块I/O和CPU活动等进行监控.它是对系统的整体情况进行统

setfacl命令--Linux命令应用大词典729个命令解读

内容来源于人民邮电出版社<Linux命令应用大词典> 讲述729个命令,1935个例子 学习Linux系统的参考书.案头书,遇到不懂的命令或命令选项一查即可 争取每天都发布内容 本文出自 "airfish2000" 博客,更多命令查看博客: http://airfish2000.blog.51cto.com/10829608/1894364 setfacl命令 使用setfacl命令可以设置文件或目录的ACL. 命令语法: setfacl [选项] [目录|文件] 命令中各

usermod命令--Linux命令应用大词典729个命令解读

内容来源于人民邮电出版社<Linux命令应用大词典> 讲述729个命令,1935个例子 学习Linux系统的参考书.案头书,遇到不懂的命令或命令选项一查即可 争取每天都发布内容 本文出自 "airfish2000" 博客,更多命令查看博客: http://airfish2000.blog.51cto.com/10829608/1887965 usermod命令 使用usermod命令可以修改用户账户属性,比如更改用户的Shell类型.所属的组群.用户密码的有效期.用户的登录

killall命令--Linux命令应用大词典729个命令解读

内容来源于人民邮电出版社<Linux命令应用大词典> 讲述729个命令,1935个例子 学习Linux系统的参考书.案头书,遇到不懂的命令或命令选项一查即可 争取每天都发布内容 本文出自 "airfish2000" 博客,更多命令查看博客: http://airfish2000.blog.51cto.com/10829608/1887968 killall命令 使用killall命令可以用于杀死指定进程名称的进程. 命令语法: killall[选项] [进程名] 命令中各选

rmdir命令--Linux命令应用大词典729个命令解读

内容来源于人民邮电出版社<Linux命令应用大词典> 讲述729个命令,1935个例子 学习Linux系统的参考书.案头书,遇到不懂的命令或命令选项一查即可 争取每天都发布内容 rmdir命令 使用rmdir命令可以在Linux系统中删除空目录. 命令语法: rmdir [选项] [目录] 命令中各选项的含义如表所示. 表                                  rmdir命令选项含义 选项 含义 -p 递归删除目录,当子目录删除后其父目录为空时,也一同被删除 -v

id命令--Linux命令应用大词典729个命令解读

内容来源于人民邮电出版社<Linux命令应用大词典> 讲述729个命令,1935个例子 学习Linux系统的参考书.案头书,遇到不懂的命令或命令选项一查即可 争取每天都发布内容 id命令 使用id命令可以显示用户的UID以及该用户所属组群的GID. 命令语法: id [选项] [用户名] 命令中各选项的含义如表所示. 表                                  id命令选项含义 选项 含义 -g 显示用户所属主要组群的GID -G 显示用户所属组群的GID(主要组群和

df命令--Linux命令应用大词典729个命令解读

内容来源于人民邮电出版社<Linux命令应用大词典> 讲述729个命令,1935个例子 学习Linux系统的参考书.案头书,遇到不懂的命令或命令选项一查即可 争取每天都发布内容 df命令 使用df命令可以显示文件系统的信息,默认是显示所有文件系统.检查文件系统的磁盘空间使用情况,利用该命令获取硬盘使用了多少空间.目前还剩下多少空间等相关信息. 命令语法: df[选项] [文件] 命令中各选项的含义如表所示. 表                                    df命令选项