Question: Switch to a command - line terminal ( tty 5 ) by pressing Ctrl + Alt + F 5 and log in to the terminal

Switch to a command-line terminal (tty5) by pressing Ctrl+Alt+F5 and log in to the terminal using the user name of root and the password of LINUXrocks!.
2
At the command prompt, type pwd , press Enter, and ensure /root is displayed showing that you are in the root users home folder. At the command prompt, type ls . How many files with a name beginning with the word sample exist in /root?
3
At the command prompt, type ls * and press Enter. What is listed and why?
4
At the command prompt, type ls sample* and press Enter. What is listed?
5
At the command prompt, type ls sample? and press Enter. What is listed and why?
6
At the command prompt, type ls sample?? and press Enter. What is listed and why?
7
At the command prompt, type ls sample[13] and press Enter. What is listed and why?
8
At the command prompt, type ls sample[!13] and press Enter. What is listed and why?
9
At the command prompt, type ls sample[1-3] and press Enter. What is listed and why?
10
At the command prompt, type ls sample[!1-3] and press Enter. What is listed and why?
11
Type exit and press Enter to log out of your shell.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!