How to List All of the Available Mac Terminal Commands

How to List All of the Available Mac Terminal Commands

In addition to a great graphical user interface, macOS offers a very capable command line environment via the Terminal program. However, there are over 1,400 possible commands you can use with the Mac Terminal application. How can you find out what they are, and what they do?

How to View All of the Possible Terminal Commands in macOS

While we refer to the Mac operating system as “macOS,” the Mac Terminal and all of its commands are available on all recent versions of the Mac operating system, as long as you’re using the default bash prompt. Here’s how to list the commands.

How to List All of the Available Mac Terminal Commands
  1. Open the Terminal app. It can be found in /Applications/Utilities/ or you can just bring up Spotlight Search and type “Terminal” and press ENTER.
  2. At the bash prompt, hit the Escape key twice. (Upper left-hand corner of your Mac’s keyboard.)
  3. You’ll see a message that says “Display all 1468 possibilities? (y or n)” hit the “y” key to start displaying every command.
  4. The listing will stop each time it fills up the Terminal screen. Hold the Return key to scroll line-by-line through the list. Press the space bar to page down an entire screen.  (If needed, you can scroll back up with your mouse pointer to view commands that have scrolled off the screen.)
  5. When you’ve finished viewing the list, hit the “Delete” or Backspace key to close the list and return to a bash prompt.

Get Information About a Terminal Command

That was an amazing amount of commands, right? But what do they do?

How to List All of the Available Mac Terminal Commands
  1. Right-click on any command listed in the Terminal window.
  2. Choose “Open man page”
  3. The manual page for the command will open in a new terminal window to explain the command. as seen below.
How to List All of the Available Mac Terminal Commands

(Original Tip: OSXDaily)