在我的 Ubuntu 14.04 /etc/fstab 中,我有以下几行:
UUID=e4YGg1-2bHU-Ylum-3FwK-MK3s-1Fjf-ZvQEh2 none swap sw 0 0
Run Code Online (Sandbox Code Playgroud)
这似乎很适合交换。
我无法弄清楚sw选项代表什么。在 fstab man 和 swapon 中都没有任何指示。
任何的想法?
我一般通过管道将命令ls与less并想同时进行分页例如我碰到过一个文件,我想删除,所以我想执行的命令执行命令rm {filename},同时仍然分页。我也希望在阅读手册页时可以使用相同的方法。如果不是它有什么不同?
为什么没有sizeofC 函数的手册页?
$ man 3 sizeof
No manual entry for sizeof in section 3
$ man sizeof
No manual entry for sizeof
Run Code Online (Sandbox Code Playgroud)
我确实看到了其他 C 函数的手册页,就像malloc我运行man 3 malloc和类似的命令一样,但没有看到sizeof.
...可能是一个愚蠢的问题,但我无法击败谷歌告诉我答案,所以张贴在这里:
我有 2 台机器 - Slackware 13 和 Fedora 11。
在 Slack 机器上,当我使用 man 时,我可以一直滚动到底部然后退出 man 并且信息保留在我的终端窗口中(我觉得这非常方便,因为我可以在键入相关命令时阅读它,复制粘贴选项等)。
在 Fedora 上,当我关闭 man 时,手册页信息消失了。
如何配置 man(或者它是终端?)以在退出时不删除手册页信息?
我正在使用的 IBM AIX 系统上有一些二进制文件和相应的手册页(/some/path/bin 和 /some/path/man),但 bin 和 man 目录都不在 my$PATH或$MANPATH. 我想查看具体的手册页。如果我知道手册页的位置,即 /some/path/man/my_man.5,如何显示手册页?
如果我跑步man /some/path/man/my_man.5我会得到Manual entry for /some/path/man/my_man.5 not found or not installed.
我尝试将路径 /some/path/man 添加到我的$MANPATH环境变量中,但是当我这样做时,man my_man.5我得到了通常的手册屏幕,但它只显示整个手册页的标题,即第 1 页,而如果vim /some/path/man/my_man.5我请参阅全文。
这个问题似乎在 AIX 系统上表现出来(据我所知,很多工具不是 GNU),因为如果我man /some/path/man/my_man.5在 Linux 系统上这样做,我确实会得到预期的 man 屏幕。
我想知道“man 3 command”与“man command”有什么区别?
我在 wiki ( http://en.wikipedia.org/wiki/Man_page ) 中读到man 3 在手册页的第 3 部分中用于 Linux。第 3 节涉及库函数,特别是 C 标准库。
我尝试了“man 3 ls”并得到了这个:
No entry for ls in section 3 of the manual
Run Code Online (Sandbox Code Playgroud)
我想知道什么时候用 man 3 什么时候用 man ,它们是否有不同的用途?
谢谢。
我不敢问这个问题,但是对于 OS-X 和可能其他 POSIX 系统上的许多命令,我很难找到有关内置命令的所需文档。
例如,如果我想知道命令的-P选项cd做了什么,我希望man cd告诉我,但可惜它把我带到了可怕的“BSD 通用命令”页面。
许多这些命令(全部?)不支持 --help选项,所以我能做的最好的事情就是通过给出一个无效的选项来诱导一个简洁的使用消息。例如:
~ $ cd --tell-me-something-I-didnt-know-damn-you
-bash: cd: --: invalid option
cd: usage: cd [-L|-P] [dir]
Run Code Online (Sandbox Code Playgroud)
我找到了 POSIX 标准simple command 部分,这似乎很有用,但我觉得我错过了一些基本的东西。应该没有那么难。
获取有关内置命令的详细使用信息的正确方法是什么?
打开时,man aptitude我在很多地方看到了这一点:
(see the section “Search Patterns” in the aptitude reference manual).
Run Code Online (Sandbox Code Playgroud)
如何打开本参考手册?我想找到像~i(搜索已安装的软件包)这样的模式,~U搜索可升级的软件包。
man默认使用寻呼机。对于短页面,我只想将它们回显到终端而不进行寻呼。我在 OS X 上。我尝试过的事情:
man -t man #produces PostScript output
man man | groff -T latin1 #readable, but line wraps badly
man man | troff -a #readable, but ... interesting ...
man man | echo #no output
Run Code Online (Sandbox Code Playgroud)
更好的优惠?