LinuxTOY 是一个致力于提供 Linux 相关资讯的专题站点。如果您发现了好用好玩的 Linux 东东并愿意发扬自由、分享的精神,可以点击顶部导航 Contact 按钮进行投稿。

Related entries

man 使用技巧两则

记得我初学 Linux 使用时,首先了解的就是如何在 Linux 系统中获得帮助的课程。当然,这其中少不了 man 命令的介绍。今天,在 Linux.com 网站读到一篇介绍 man 使用技巧的文章,个人感觉很受用,现介绍给大家分享。

  1. 使用书签

    man tricks

    man 其实是调用 less 来显示手册页的。因此,在阅读内容比较长的页面时,可以使用书签来标记需要重复阅读的重要内容。标记的方法为:先按 m 键,然后在 mark: 后输入标记字母,如 a。需要说明的是,标记符是区分大小写的,也就是说 a 与 A 是两个不同的标记符。

    当你需要返回先前设置的书签时,可以按 键(单引号)。此时会显示 goto mark:,输入你设置的标记符即可。

  2. 测试命令

    man tricks

    当你在阅读 man 手册页时想要对命令的用法进行尝试的话,那么可以使用 !。这让你不必打开新的终端,也不用离开 man 手册的阅读页面。在按下 ! 之后,你就可以自由输入所要测试的命令了。完成后,按回车键将返回到 man 手册的阅读页面。

- Secrets of the man command by Shashank Sharma [Linux.com]

署名 • 注明出处 • 非商业性使用

11 Comments

  1. 1 wyg1258 Commented @ 2007-09-08 11:47 amReply to this comment

    very useful!

  2. 2 su27 Commented @ 2007-09-08 11:59 amReply to this comment

    很有用,以前都不知道。。谢谢。

  3. 3 leeight的马甲 Commented @ 2007-09-08 1:53 pmReply to this comment

    very good, thanks a lot

  4. 4 yhlfh Commented @ 2007-09-08 1:55 pmReply to this comment

    这个刺激。貌似vim也有!这招。

  5. 5 wjs272 Commented @ 2007-09-08 3:11 pmReply to this comment

    goooooooooooooooooooooooood

  6. 6 c Commented @ 2007-09-08 3:23 pmReply to this comment

    less本来就是基于vi之上的嘛.

  7. 7 man 使用技巧两则[zz] « Xiaomeng’s Weblog Pingbacked @ 2007-09-08 3:49 pmReply to this comment

    [...] from http://linuxtoy.org/archives/man-tricks.html [...]

  8. 8 YZard Commented @ 2007-09-08 7:02 pmReply to this comment

    有时候这些个下划线的能快速定位到下划线相关的说明么…..我很想知道这个

  9. 9 漫步 » man 使用技巧两则 Pingbacked @ 2007-09-09 9:15 amReply to this comment

    [...] 摘至[LinuxToy] Tags: Linux, man, ubuntu Comments(0) | Add Comments [...]

  10. 10 pig345 Commented @ 2007-09-10 6:37 pmReply to this comment

    有用,没有更基础/更常用些的,比如下划线的文字是否有跳转阿?

  11. 11 nelson Commented @ 2008-09-12 1:55 pmReply to this comment

    Good!