Skip to content

Commit

Permalink
Made changes to lab 2
Browse files Browse the repository at this point in the history
Fixed typo and added space between code blocks.
  • Loading branch information
philipbl committed Sep 14, 2023
1 parent 0d36cef commit 545723c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _labs/command-line.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ Once you have selected a prior command with the up and down arrow keys, you may

#### Command Completion
Another helpful shortcut is called tab completion. If the tab key is pressed while a partial command or file name is typed, the shell will complete the rest of the text based on what has already been typed. Open a terminal window to your home directory (you can do this by typing `Ctrl`+`Alt`+`T` and then `ssh`ing into your Raspberry Pi) and type the following and then hit `Tab`.

```bash
ls /d
```

After hitting `Tab` you should see that “/d” was extended to “/dev/”. Now type `Enter` to execute the command. When navigating deep directory hierarchies, tab completion can assist in typing what could otherwise be very long path names. For example, tab can be pressed multiple times to keep extending the path name after typing a few characters, enough to make the name unique.

Command names can also be tab completed. In a terminal window, type the following and then hit `Tab`.
Expand Down

0 comments on commit 545723c

Please sign in to comment.