From LQWiki
When you use the bash shell on Linux it will complete commands and file names for you if you type the 'TAB' key. The default behaviour is:
- You type in the start of the command or filename.
- You hit TAB.
- The shell will fill in as much as it can and beep.
- Hit TAB again and it shows you all possible matches.
Example:
- You want to start firefox and type only firef and then the 'TAB' key.
- You want to know which commands starting with 'f' exist, so you type 'f' and then the 'TAB' key twice.
The default behavior be changed to:
- You type in the start of the command or filename.
- You hit TAB.
- The shell will fill in as much as it can and beep.
All that needs to be done is:
- Edit /etc/inputrc
- Add the line:
set show-all-if-ambiguous on

This page is available under a