Terminal Commands – What Does Hitting the Tab Button Do in Terminal?

macosterminal

In Terminal, if I hit tab twice, Terminal asks if I want to list all 1580 possibilities. What is this, and what is this used for?

Best Answer

Pressing 'Tab' in terminal autocompletes commands and/or paths. Pressing it twice while there are no any part of any command/path is entered proposes to you to show all possible commands.