最新Lpi认证_117-202题库(45)
1.Which of the following SQL statements will select the fields name and address from the contacts table?
A.SELECT (name, address) FROM contacts;
B.SELECT (name address) FROM contacts;
C.SELECT name, address FROM contacts;
D.SELECT name address FROM contacts;
Answer: C
2.Which of the following find commands will print out a list of suid root files in /usr?
A.find /usr -uid 0 -perm +4000
B.find -user root +mode +s /usr
C.find -type suid -username root -d /usr
D.find /usr -ls \*s\* -u root
E.find /usr -suid -perm +4000
Answer: A
3.Which command is used to display user resource limits?
A.uname
B.limit -a
C.usrlmt
D.ulimit
Answer: D
4.Which configuration file would you edit to change default options for outbound ssh sessions?
A./etc/ssh/sshd_config
B./etc/ssh/ssh
C./etc/ssh/client
D./etc/ssh/ssh_config
E./etc/ssh/ssh_client
Answer: D
5.When using ssh, what can you do to recover a lost passphrase for a DSA or RSA authentication key?
A.Run the ssh-keygen command.
B.Run the ssh -recover command.
C.A lost passphrase cannot be recovered.
D.Decrypt the authentication key with gpg.
E.Decrypt the authentication key with ssh -decrypt.
Answer: C
6.Which file lists which users can execute commands using sudo? (Provide the full path and filename)
ANSWER: /ETC/SUDOERS