Assessment Test
-
Which of the following are names of shell programs? (Choose all that apply.)
- Bash
- Korn Shell
- Born Shell
- Dash
- Z Shell
-
You are a system administrator on a CentOS Linux server. You need to view records in the /var/log/messages file that start with the date May 30 and end with the IPv4 address 192.168.10.42. Which of the following is the best grep command to use?
- grep "May 30?192.168.10.42" /var/log/messages
- grep "May 30.*192.168.10.42" /var/log/messages
- grep -i "May 30.*192.168.10.42" /var/log/messages
- grep -i "May 30?192.168.10.42" /var/log/messages
- grep -v "May 30.*192.168.10.42" /var/log/messages
-
Which of the following commands will determine how many records in the file Problems.txt contain the word error
Get LPIC-1 Linux Professional Institute Certification Study Guide, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.