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.
原文地址:https://www.cnblogs.com/zhouj-happy/p/12587129.html