Using Autocompletion

Learn how to autocomplete commands in the CLI.

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 /Doc<Tab>

Get hands-on with 1400+ tech skills courses.