(102-500) Pre-Assessment Quiz Flashcards
Which of the following will delete the first job scheduled by the at utility? (Choose two.)
a. atrm 1
b. at -rm 1
c. at -d 1
d. atd 1
a. atrm 1
c. at -d 1
Which of the following is a valid method of running a script named myscript.sh? (Choose two)
a. source myscript.sh
b. run myscript.sh
c. exec ./myscript.sh
d. ./myscript.sh
a. source myscript.sh
d. ./myscript.sh
Which of the following constructs when used between two commands will run the second command only if the first command fails?
a. &&
b. ##
c. ||
d. !=
c. ||
Ashton has issues pressing multiple keys on the keyboard at the same time. He turns on an accessibility feature that allows him to press the shift key and then a letter in order to get a capital letter when typing. What is the name of the feature that Ashton enabled?
a. slow keys
b. bounce keys
c. repeat keys
d. sticky keys
d. sticky keys
Which of the following commands can be used to set the BIOS time from the system clock on a Linux system?
a. localtime
b. hwclock
c. date
d. tzselect
b. hwclock
Jackie wants to configure journald to forward all events to the System Log daemon. Which of the following files should she modify to enable this setting?
a. /etc/systemd/journald.conf
b. /etc/journald.conf
c. /etc/system/system.conf
d. /etc/systemd.conf
a. /etc/systemd/journald.conf
Which of the following commands can you use to send a print job to printer1? (Choose all that apply.)
a. lp -d printer1 mydocument.txt
b. lpr -d printer1 mydocument.txt
c. lpr -P printer1 mydocument.txt
d. lp -p printer1 mydocument.txt
a. lp -d printer1 mydocument.txt
c. lpr -P printer1 mydocument.txt
Which of the following commands will perform a traceroute to Google’s IPv6 address? (Choose all that apply.)
a. traceroute6 google.com
b. traceroute -6 google.com
c. traceroute –ipv6 google.com
d. traceroute -v6 google.com
a. traceroute6 google.com
b. traceroute -6 google.com
Jacob is able to ping multiple systems by their IP addresses, but not by their domain name. He believes his ISP is currently having issues with their DNS server. In order to troubleshoot, he wants to temporarily change the DNS server his system is using to one of the public DNS servers on the Internet. Which of the following files should Jacob edit?
a. /etc/nsswitch.conf b. /etc/resolv.conf c. /etc/dns.conf d. /etc/hosts.conf
b. /etc/resolv.conf
Tony wants to forward all of his emails to another email address. How can he enable this?
a. Use the command mailforward –add email@domain.com
b. Use the command mail -f email@domain.com
c. Create a ~/.forward file containing the email address to forward to
d. Edit the ~/.mail.cnf file
c. Create a ~/.forward file containing the email address to forward to