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?
command1 || command2
command1 ;; command2
command1 >> command2
command1 && command2
Question 7
Which command installs most rpm packages?
rpm package_name.rpm
rpm - -package_name.rpm
rpm –i package_name.rpm
install package_name.rpm
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?
rsync –a /home /backup
rsync –a /home/ /backup
rsync –a /home/* /backup
rsync –a /home/? /backup
Question 9
What command lists the registered PolKit actions?
pkaction
polkit-list –t actions
policy –l –a
polkit-agent –l –t=actions
Question 10
What command disables the ssh service on a systemd system?