【问题标题】:Where can I find the Docs for mac terminal commands, specifically 'open'我在哪里可以找到 mac 终端命令的文档,特别是“打开”
【发布时间】:2021-12-08 21:20:06
【问题描述】:

Zsh

MAC 11.4

我正在编写一个别名,它打开两个新终端并在每个终端中运行一个脚本。 我发现可以打开一个新终端的命令是:

open -a Terminal -n; *program*

我正在尝试查找有关此命令的文档,以更好地理解“-a”和“-n”的含义以及如何更好地使用它,但不确定在哪里查看?是用Zsh、applescript等内置的吗???

提前致谢

【问题讨论】:

  • @IcyIcicle,谢谢。那么这些命令是所有 unix 系统的“BSD”包的一部分吗?
  • 我不确定,但这里是linux manmacos man 的页面。所以看起来它在两者上都有。不过,我不确定“BSD”包。

标签: macos terminal


【解决方案1】:

man 显示命令的手册页。

语法是man open。你甚至可以用这个结果做man man


NAME
       man - format and display the on-line manual pages

SYNOPSIS
       man [-acdfFhkKtwW] [--path] [-m system] [-p string] [-C config_file] [-M pathlist] [-P pager] [-B browser] [-H htmlpager] [-S section_list] [section] name ...

DESCRIPTION
       man formats and displays the on-line manual pages.  If you specify section, man only looks in that section of the manual.  name is normally the name of the manual page, which
       is typically the name of a command, function, or file.  However, if name contains a slash (/) then man interprets it as a file specification, so that you can do  man  ./foo.5
       or even man /cd/foo/bar.1.gz.

       See below for a description of where man looks for the manual page files.

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多