Another way that the shell can help you is through a mechanism called completion. Completion occurs when you press the tab key while typing a command. Let’s see how this works. Say your home directory looks like this:
lsDesktop ls-output.txt Pictures Templates Videos Documents Music Public
Try typing the following but don’t press the enter key:
Now press the tab key:
See how the shell completed the line for you? Let’s try another one. Again, don’t press enter:
Press tab :
No completion—just a beep. This happened because
D matches more than one entry in the directory. For completion to be successful, the “clue” you give it has ...