macos 查看命令的文档

5 Tricks to Get Instant Command Line Help in the Mac OS X Terminal

Command Action / Results
man (command) Display the manual page for (command). eg: man lsof
whatis (command) Display a one line brief summary of specified command. eg: whatis lsof
(command) --help Display command usage information including available flags and proper syntax. eg: lsof –help
apropos (string) Searches the whatis database for (string), helpful in finding commands. eg: apropos ssh
(command)+tab key Begin typing a command, and hit the tab key to autocomplete, or to list available commands that start with the typed prefix.
posted @ 2020-03-28 13:58  idea偶买噶  阅读(357)  评论(0编辑  收藏  举报