Chapter 12Practice Exam 2

  1. To which file should you add an entry in order for a host to be blocked using TCP wrappers?

    1. /etc/hosts.deny
    2. /etc/tcp.wrappers
    3. /etc/wrap.config
    4. /etc/tcpwrap.conf
  2. Which of the following commands creates an alias for the ps command such that the options auwx are included when the user types psa?

    1. alias "ps auwx" = "psa"
    2. alias psa=ps uawx
    3. alias psa="ps auwx"
    4. psa="ps auwx"
  3. Which of the following conditionals in a Bash script will test if the variable DAY is equal to SUNDAY?

    1. if ($DAY == "SUNDAY")
    2. if ($DAY -eq "SUNDAY")
    3. if [[ $DAY == "SUNDAY" ]]
    4. if [ DAY = "SUNDAY" ]
  4. Which of the following commands is necessary for making a variable defined in your current shell available to child processes?

    1. export ...

Get LPIC-1 Linux Professional Institute Certification Practice Tests, 2nd 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.