Question: Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the ter- minal using the user name of root and the password

Switch to a command-line terminal (tty2) by pressing Ctrl+Alt+F2 and log in to the ter- minal using the user name of root and the password of LNXrocks!. 2. At the command prompt, type grep Inn sample1 and press Enter. What is dis- played and why? 3. At the command prompt, type grep -v Inn sample1 and press Enter. What is dis- played and why? How does this compare to the results from Step 2? 4. At the command prompt, type grep inn sample1 and press Enter. What is dis- played and why? 5. At the command prompt, type grep -i inn sample1 and press Enter. What is dis- played and why? How does this compare to the results from Steps 2 and 4? 6. At the command prompt, type grep I sample1 and press Enter. What is displayed and why? 7. At the command prompt, type grep I sample1 and press Enter. What is displayed and why? How does it differ from the results from Step 6 and why? 8. At the command prompt, type grep t.e sample1 and press Enter. What is dis- played and why? 9. At the command prompt, type grep w...e sample1 and press Enter. What is displayed and why? 10. At the command prompt, type grep ^I sample1 and press Enter. What is dis- played and why? 11. At the command prompt, type grep ^I sample1 and press Enter. What is displayed and why? How does this differ from the results in Step 10 and why? 12. At the command prompt, type grep (we|next) sample1 and press Enter. Is any- thing displayed? Why?

13. At the command prompt, type egrep (we|next) sample1 and press Enter. What is displayed and why? 14. At the command prompt, type grep Inn$ sample1 and press Enter. What is displayed and why? 15. At the command prompt, type grep ?$ sample1 and press Enter. What is displayed and why? Does the ? metacharacter have special meaning here? Why? 16. At the command prompt, type grep ^$ sample1 and press Enter. Is anything dis- played? (Hint: Be certain to look closely!) Can you explain the output? 17. 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!