Problem

In this hands-on project, you navigate the Linux filesystem using the Tab-completion fea...

In this hands-on project, you navigate the Linux filesystem using the Tab-completion feature of the BASH shell.

1. Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the terminal using the user name of root and the password of secret.

2. At the command prompt, type cd / and press Enter.

3. Next, type cd r at the command prompt and press Tab. What is displayed on the screen and why? How many subdirectories under the root begin with “r”?

4. Press the Ctrl and c keys simultaneously to cancel the command and return to an empty command prompt.

5. At the command prompt, type cd b and press Tab. Did the display change? Why did you hear a beep?

6. Press Tab again. How many subdirectories under the root begin with “b”?

7. Type the letter i. Notice that the command now reads cd bi. Press Tab again. Which directory did it expand to? Why? Press the Ctrl and c keys simultaneously to cancel the command and return to an empty command prompt.

8. At the command prompt, type cd m and press Tab. Press Tab once again after hearing the beep. How many subdirectories under the root begin with “m”?

9. Type the letter e. Notice that the command now reads cd me. Press Tab.

10. Press Enter to execute the command at the command prompt. Next, type the pwd command and press Enter to verify that you are in the /media directory.

11. Type exit and press Enter to log out of your shell.

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search