Sample Header Ad - 728x90

Where can I find all the documentation for mac's builtin shell commands?

13 votes
4 answers
3858 views
The [builtin man page for Mac OS X](https://web.archive.org/web/20040709220105/http://developer.apple.com/documentation/Darwin/Reference/ManPages/html/builtins.1.html) lists out all builtin functions (commands that can be executed within the running shell's process). But where can I find the documentation of a particular one? For instance, for the builtin fc on Ubuntu Linux, I can get its help by: > help fc fc: fc [-e ename] [-lnr] [first] [last] or fc -s [pat=rep] [command] Display or execute commands from the history list. fc is used to list or edit and re-execute commands from the history list. FIRST and LAST can be numbers specifying the range, or FIRST can be a string, which means the most recent command beginning with that string. .... Another example is the if expression, on Ubuntu: > help if if: if COMMANDS; then COMMANDS; [ elif COMMANDS; then COMMANDS; ]... [ else COMMANDS; ] fi Execute commands based on conditional. ... What am I missing here?
Asked by user2829759 (241 rep)
Feb 21, 2017, 06:05 AM
Last activity: May 16, 2025, 05:42 AM