Linux-man page(Linux在线手册) 的简单使用

本文介绍了 Linux Manpage 的基本使用方法,包括不同章节的内容概述、快捷键操作方式及如何查看命令帮助信息。对于 Linux 用户来说,熟练掌握 Manpage 的使用能够有效提升工作效率。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Linux-man page(Linux在线手册) 的简单使用

其中man是manual的缩写

必须要记得的代码号是1,5,8
命令: man 7 man
部分结果:
The manual sections are traditionally defined as follows:

              1 Commands
                        Those commands that can be executed by the user from
                        within a shell.(使用者在shell环境中可以操作的指令或可执文件)

              2 System calls
                        Those functions which must be performed by the kernel.

              3 Library calls
                        Most of the libc functions, such as qsort(3).

              4 Special files
                        Files found in /dev.(装置档案的说明,通常在/dev下的文件)

              5 File formats and conventions
                        The format for /etc/passwd and other human-readable
                        files.

              6 Games

              7 Conventions and miscellaneous
                        A description of the standard file system layout, net-
                        work protocols, ASCII and other character codes, this
                        man page, and other things.(惯例与协定等,例如Linux档案系统、网路协定、ASCII code等等的说明)

              8 System management commands
                        Commands like mount(8), many of which only root can
                        execute.


              9 Kernel routines
                        This is an obsolete manual section.   Once it was
                        thought a good idea to document the Linux kernel here,
                        but in fact very little has been documented, and the
                        documentation that exists is outdated already. There
                        are better sources of information for kernel develop-
                        ers.(跟kernel有关的文件)

按键 進行工作进行工作 空白鍵空白键 向下翻一页 [Page Down] 向下翻一页 [Page Up] 向上翻一页 [Home] 去到第一页 [End] 去到最后一页 /string 向『下』搜寻string这个字串,如果要搜寻vbird的话,就输入/vbird ?string 向『上』搜寻string这个字串 n, N 利用/或?来搜寻字串时,可以用n来继续下一个搜寻(不论是/或?) ,可以利用N来进行『反向』搜寻。 举例来说,我以/vbird搜寻vbird字串,那么可以n继续往下查询,用N往上查询。 若以?vbird向上查询vbird字串,那我可以用n继续『向上』查询,用N反向查询。 q 结束这次的man page
       man page通常是放在/usr/share/man这个目录里头,然而,我们可以通过修改他的man page搜寻路径来改善这个目录的问题(但这也太无聊了吧)! 修改/etc/man.config (有的版本为man.conf或manpath.conf)即可!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值