LPIC-1 Exam Prep (Course 2) Quiz Questions and Answers
You’ve set your system (software) clock on a Linux-only computer to the correct time, and now you want to set the hardware clock to match. What command might you type to accomplish this goal?
Answer :
hwclock --utc --systohc
Which servers might you consider retiring after activating an SSH server? (Select two)
Answer :
Telnet
FTP
You’ve configured one computer (gateway.pangaea.edu) on your five-computer network as an NTP server that obtains its time signal from ntp.example.com. What computer(s) should your network’s other computers use as their time source(s)?
Answer :
Only gateway.pangaea.edu.
What information about print jobs does the lpq command display? (Select two.)
Answer :
A numerical job ID that can be used to manipulate the job
The username of the person who submitted the job
What tool might you use to print a four-page PostScript file on a single sheet of paper?
Answer :
mpage
Which of the following programs is conventionally used to perform a DNS lookup?
Answer :
host
Where is the best location for the current directory indicator (.) to reside in root’s PATH environment variable?
Answer :
Nowhere; it shouldn’t be in root’s path
Which of the following commands, if typed in a bash shell, will create an environment variable called MYVAR with the contents mystuff that will be accessible to subsequently launched programs?
Answer :
export MYVAR=’mystuff’
Your SMTP email server, mail.luna.edu, receives a message addressed to postmaster@ mail.luna.edu. There is no postmaster account on this computer. Assuming the system is properly configured, how should the email server respond?
Answer :
Deliver the email to another account, either locally or on another computer.
You examine your /etc/aliases file and find it contains the following line:
root: jody
What can you conclude from this?
Answer :
Email addressed to root on this system will be sent to the local user jody.