Assessment Test

  1. Which of the following are names of shell programs? (Choose all that apply.)

    1. Bash
    2. Korn Shell
    3. Born Shell
    4. Dash
    5. Z Shell
  2. 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?

    1. grep "May 30?192.168.10.42" /var/log/messages
    2. grep "May 30.*192.168.10.42" /var/log/messages
    3. grep -i "May 30.*192.168.10.42" /var/log/messages
    4. grep -i "May 30?192.168.10.42" /var/log/messages
    5. grep -v "May 30.*192.168.10.42" /var/log/messages
  3. 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.