我在哪里可以找到 mac 终端命令的文档,特别是 'open'
Where can I find the Docs for mac terminal commands, specifically 'open'
Zsh
MAC11.4
我正在编写一个别名,它可以打开两个新终端并在每个终端中运行一个脚本。
我发现打开新终端的命令是:
open -a Terminal -n; *program*
我正在尝试查找有关此命令的文档,以便更好地理解“-a”和“-n”的含义以及如何更好地使用它,但不确定到哪里查看?它是用 Zsh、applescript 等构建的吗???
提前致谢
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.
Zsh
MAC11.4
我正在编写一个别名,它可以打开两个新终端并在每个终端中运行一个脚本。 我发现打开新终端的命令是:
open -a Terminal -n; *program*
我正在尝试查找有关此命令的文档,以便更好地理解“-a”和“-n”的含义以及如何更好地使用它,但不确定到哪里查看?它是用 Zsh、applescript 等构建的吗???
提前致谢
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.