Linux Part 2 v10.0 (LX0-102)

Page:    1 / 12   
Total 177 questions

Which of the following commands would an administrator use to create an OpenSSH authentication key?

  • A. sshd
  • B. ssh-agent
  • C. ssh-keygen
  • D. ssh-add


Answer : C

What word is missing from the following SQL statement? select count(*) _____ tablename;



Answer : FROM

A French user has installed the French language pack, but currencies are still being displayed with a leading '$' sign in spreadsheets. Which of the following must be done to fix this?

  • A. Alter the locale.
  • B. Set the timezone correctly.
  • C. Edit /etc/currency.
  • D. Reinstall the French language pack.


Answer : A

An ISP has given an administrator an IP block for use. The block is 192.168.112.64/26. If the administrator uses the first usable IP for the router that is installed on the network, how many usable IPs are left? (Please enter the number and not a word)



Answer : 61

The _________ command is used to assign an IP address to a device. (Please specify a single command with or without path information)



Answer : /SBIN/IFCONFIG, /SBIN/IP, IFCONFIG, IP

Given the following line from /etc/nsswitch.conf: hosts: files mdns4_minimal
[NOTFOUND=return] dns mdns4 By default, which file will be queried first for hostname lookups? (Provide the full path and filename).



Answer : /ETC/HOSTS

An administrator is logged in as root. What command should the administrator run to find out what groups user bruno belongs to?



Answer : /USR/BIN/GROUPSBRUNO,/USR/BIN/IDBRUNO,GROUPSBRUNO,IDBRUNO

Which of the following commands should be used to print a listing of emails in the system's mail queue?

  • A. sendmail -l
  • B. lpq
  • C. mailq
  • D. mlq


Answer : C

Each entry in a crontab must end with which of the following characters?

  • A. tab
  • B. space
  • C. backslash
  • D. newline


Answer : D

What is the command to delete the default gateway from the system IP routing table?
(Please specify the complete command with arguments, please no duplicate answers in this field.)



Answer : /SBIN/IPROUTEDEL0.0.0.0, /SBIN/IPROUTEDELDEFAULT, /SBIN/ROUTEDEL0.0.0.0, /SBIN/ROUTEDELDEFAULT, IPROUTEDEL0.0.0.0, IPROUTEDELDEFAULT, ROUTEDEL0.0.0.0, ROUTEDELDEFAULT

While performing a security audit, an administrator discovers that a machine is accepting connections on TCP port 184, but it is not obvious which process has the port open. Which of the following programs should the administrator use to find out?

  • A. traceroute
  • B. strace
  • C. debug
  • D. nessus
  • E. lsof


Answer : E

Which of the following is the purpose of the dig command?

  • A. To adjust a directory's hidden permissions
  • B. To search for files on the filesystem
  • C. To adjust a file's hidden permissions
  • D. To perform hostname lookups
  • E. To ping all known hosts on the current subnet


Answer : D

An administrator suspects that a gateway machine on their network has failed; the administrator is unsure which machine is the problem. Which of the following commands will help locate the problem machine?

  • A. ps
  • B. netstat
  • C. nslookup
  • D. ifconfig
  • E. traceroute


Answer : E

An administrator is configuring a secured webserver, however connecting to https://127.0.0.1 is not working. The administrator runs netstat -ntl, which returns the following output: tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN What port should be listening before a successful connection is possible? (Provide only the numerical value of the port).



Answer : 443

In the following command and its output, echo $$ 12942 which of the following is 12942?

  • A. The process ID of the echo command.
  • B. The process ID of the current shell.
  • C. The process ID of the last command executed.
  • D. The process ID of the last backgrounded command.


Answer : B

Page:    1 / 12   
Total 177 questions