Using Autocompletion
Explore how to use the Tab key for autocompletion in the command-line interface. Learn to navigate directories and files more quickly, avoid typos, and see possible options when multiple matches exist. This skill improves efficiency and accuracy in command-line tasks.
We'll cover the following...
We'll cover the following...
The “Tab” key
If we need to reference a file name or directory in a command, we type part of the name, followed by the “Tab” key, and the CLI will attempt to autocomplete the word. Try this out. Switch to the Documents directory in the home directory like this, and run this in the terminal below:
$ cd ...