Showing posts with label course answers. Show all posts
Showing posts with label course answers. Show all posts

Sunday, May 16, 2021

LinkedIn Learning Course Linux: Shells and Processes By: Grant McWilliams FINAL TEST ANSWERS



 

Exam questions With Answers

    • Attempted incorrect option

      the value of variables can be inserted in place of the variable name

    • words can replace commands

    • aliases can replace commands

    • Correct answer

      commands can be inserted inside text strings and executed

    • Attempted incorrect option

      Precede matching characters with a negative sign.

    • Correct answer

      Precede matching characters with an exclamation point.

    • Use a regular expression.

    • Include a caret anywhere in between the brackets.

    • 19

    • 10

    • 0

    • Attempted correct option

      -19

    • Attempted incorrect option

      !!

    • Correct answer

      !*

    • !ls

    • !

    • match the number of occurrences

    • match entire words

    • do group matches

    • Attempted correct option

      all of these answers

    • Runs the backup.sh script the first day of the week at 1:15 am.

    • Runs the backup.sh script every 15 minutes on Monday of every week.

    • Attempted correct option

      Runs the backup.sh script at 1:00 am on the 1st and 15th day of every month.

    • Runs the backup.sh script every minute of the first hour on the 1st and 15th day of the month.

    • /etc/spool/cron/

    • /var/spool/cron/

    • /var/spool/cron.d/

    • Attempted correct option

      /etc/cron.d/

    • the + operator

    • the * operator

    • Attempted correct option

      the ? operator

    • the {01} characters

    • Attempted correct option

      restricts all users from using the cron service except for the user named bob.

    • allows all users use the cron service except for the user named bob.

    • restricts all users from using the cron service.

    • allows all users to use the cron service.

    • edit your terminal settings and click the ignorespace option

    • Attempted correct option

      export HISTIGNORE=”*” in your shell startup file

    • install a special terminal

    • export HISTCONTROL=ignoredups

    • brace expansion

    • Attempted correct option

      treating text as literal

    • variable substitution

    • command substitution

    • systemctl list-unit-files -t service

    • chkconfig --list-all

    • systemctl list-services

    • Attempted correct option

      systemctl list-unit-files -at service

    • chkconfig --list-running

    • systemctl list-unit-files -at service

    • systemctl list-running-files -t service

    • Attempted correct option

      systemctl list-units -t service --state running

    • only asterisks

    • any type of character and any number of them

    • any number of the previous character

    • Attempted correct option

      matches any type of character but only one of them

    • your home directory

    • Attempted correct option

      the most recent directory

    • /root

    • the parent directory

    • Attempted incorrect option

      allows users to start the crond service

    • Correct answer

      ensures that the crond service will start on bootup

    • unmasks the crond service

    • starts the crond service