加入收藏 | 设为首页 | 会员中心 | 我要投稿 源码网 (https://www.900php.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

如何创建和维护你自己的man手册

发布时间:2018-11-02 19:23:11 所属栏目:Windows 来源:Sk
导读:副标题#e# 我们已经讨论了一些 man 手册的替代方案。 这些替代方案主要用于学习简洁的 Linux 命令示例,而无需通过全面而过于详细的手册页。 如果你正在寻找一种快速而简单的方法来轻松快速地学习 Linux 命令,那么这些替代方案值得尝试。 现在,你可能正在

最后,使用以下命令查看新创建的 man 手册页:

  1. $ um dpkg

如何创建和维护你自己的man手册

如你所见,dpkg 的 man 手册页看起来与官方手册页完全相同。 如果要在手册页中编辑和/或添加更多详细信息,请再次运行相同的命令并添加更多详细信息。

  1. $ um edit dpkg

要使用 Um 查看新创建的 man 手册页列表,请运行:

  1. $ um list

所有手册页将保存在主目录中名为 .um 的目录下

以防万一,如果你不想要某个特定页面,只需删除它,如下所示。

  1. $ um rm dpkg

要查看帮助部分和所有可用的常规选项,请运行:

  1. $ um --help
  2. usage: um <page name>
  3. um <sub-command> [ARGS...]
  4.  
  5. The first form is equivalent to `um read <page name>`.
  6.  
  7. Subcommands:
  8. um (l)ist List the available pages for the current topic.
  9. um (r)ead <page name> Read the given page under the current topic.
  10. um (e)dit <page name> Create or edit the given page under the current topic.
  11. um rm <page name> Remove the given page.
  12. um (t)opic [topic] Get or set the current topic.
  13. um topics List all topics.
  14. um (c)onfig [config key] Display configuration environment.
  15. um (h)elp [sub-command] Display this help message, or the help message for a sub-command.

配置 Um

要查看当前配置,请运行:

  1. $ um config
  2. Options prefixed by '*' are set in /home/sk/.um/umconfig.
  3. editor = vi
  4. pager = less
  5. pages_directory = /home/sk/.um/pages
  6. default_topic = shell
  7. pages_ext = .md

在此文件中,你可以根据需要编辑和更改 pagereditordefault_topicpages_directorypages_ext 选项的值。 比如说,如果你想在 Dropbox 文件夹中保存新创建的 Um 页面,只需更改 ~/.um/umconfig 文件中 pages_directory 的值并将其更改为 Dropbox 文件夹即可。

  1. pages_directory = /Users/myusername/Dropbox/um

这就是全部内容,希望这些能对你有用,更多好的内容敬请关注!

【编辑推荐】

  1. 如何在Linux下锁住键盘和鼠标而不锁屏
  2. 在多台Linux服务器上运行命令的4个实用工具
  3. 如何在Linux中找到并删除重复文件
  4. Linux拥有了新的行为准则,但是许多人都对此表示不满
  5. IT断魂枪--闲聊Linux系统启动过程
【责任编辑:庞桂玉 TEL:(010)68476606】
点赞 0

(编辑:源码网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

热点阅读