Cha*_*ett 2 command-line man zsh shell-builtin command
我在哪里可以找到有关命令(?)的更多信息,print因为我在输入时没有收到结果man print?例如,在zsh我可以执行以下操作:
$ print "Hello, world\!"
Hello, world!
Run Code Online (Sandbox Code Playgroud)
我已经看到print -P foo并print -n bar使用过其他标志,但不知道它们的含义,也不知道在哪里寻找更多信息。所以我们真的有两个问题:
print来自哪里,我在哪里可以找到它的文档?man页面中找不到的类似项目的文档?注意:为了澄清起见,我不是要打印一张纸。我也知道printf,它允许格式化输出并有一个手册页。
在 中zsh,在提示符下键入print,然后键入Alt-H。
如果它为您提供print系统命令的手册页而不是print内置命令,您可能需要按照访问在线帮助下给出的说明进行操作:
info zsh Utilities
Run Code Online (Sandbox Code Playgroud)
对于zsh文档,我更喜欢info一般使用。该zsh文件是适当的索引,它是非常容易使用查找文档info。
例如,要查找print、 typeinfo zsh和inside 的文档info,请输入i以显示索引提示并输入print(您可以输入几个Tab以获得完成列表)。或者只是运行
info zsh print
Run Code Online (Sandbox Code Playgroud)
打开zsh info book,直接跳转到print索引条目。