I recently stumbled upon a little tab key trick in Mac OS X. I already knew you could press the tab key to autocomplete directory names, but I didn't know you could press the tab key additional times to resolve directory name ambiguity. How does it work? When you are typing directory names and paths, which you do with the change directory (cd) command, you can press the tab key to autocomplete the directory names. If two directories have similar names OS X and Linux will complete what you type up to the point one or more additional directory names match. If you continue to press the tab key a list of all possible directory names will display. This lets you determine what you are looking for and continue typing a directory name to resolve the ambiguity.
I'm stunned I didn't know about this neat feature of OS X and Linux, the two platforms I tested.
Check out the quick video demo below to see exactly what I'm talking about.




Tweet