LX0-104

LX0-104 practice questions, page 7 of 7, with answer review and explanations.

Question 31

Which command will set the local machine's timezone to UTC?

  1. cat UTC > /etc/timezone
  2. ln -s /usr/share/zoneinfo/UTC /etc/localtime
  3. date --timezone=UTC
  4. mv /usr/timezone/UTC /etc

Question 32

Which of the following actions prevents a specific user from scheduling tasks using at or batch?

  1. Add the specific user to the /etc/at.allow file.
  2. Add the specific user to the [deny] section in the /etc/atd.conf file.
  3. Add the specific user to the /etc/at.deny file.
  4. Add the specific user to the nojobs group.
  5. Run atd --deny followed by the name of the specific user.

Question 33

What is the main difference between the batch and at commands?

  1. The batch command will run multiple times. The at command will only run once.
  2. The commands of a batch job run sequentially one after another while the commands in at jobs may run in parallel.
  3. The at command reads commands from standard input. The batch command requires a command line argument.
  4. The at command e-mails results to the user. The batch command logs results to syslog.

Question 34

Why should a regular user edit his personal crontab by using the command crontab instead of just editing his crontab file manually?

  1. Because user specific crontab entries are stored in a common database and must be extracted before editing.
  2. Because crontab starts the cron daemon in case it is not running due to no other crontab entries existing.
  3. Because user specific crontab entries are stored in a special directory which is maintained by the cron daemon and not writable for regular users.
  4. Because crontab collects information about all users crontabs and recommends similar commands used by other users of the system.