050-733

050-733 practice questions, page 2 of 4, with answer review and explanations.

Question 6

You would like to run command2 only if command1 completed successfully. Which command accomplishes this task?

  1. command1 || command2
  2. command1 ;; command2
  3. command1 >> command2
  4. command1 && command2

Question 7

Which command installs most rpm packages?

  1. rpm package_name.rpm
  2. rpm - -package_name.rpm
  3. rpm –i package_name.rpm
  4. install package_name.rpm
  5. install –i package_name.rpm

Question 8

Using the rsync command, you want to mirror the directories, including any hidden files and directories within /home (not the /home directory itself) to the /backup directory. Which command accomplishes this?

  1. rsync –a /home /backup
  2. rsync –a /home/ /backup
  3. rsync –a /home/* /backup
  4. rsync –a /home/? /backup

Question 9

What command lists the registered PolKit actions?

  1. pkaction
  2. polkit-list –t actions
  3. policy –l –a
  4. polkit-agent –l –t=actions

Question 10

What command disables the ssh service on a systemd system?

  1. systemctl disable sshd
  2. systemdctl disable sshd
  3. systemd-stop sshd
  4. systemctl sshd - -status=disabled