Leads4pass > CompTIA > CompTIA Linux+ > LX0-104 > LX0-104 Online Practice Questions and Answers

LX0-104 Online Practice Questions and Answers

Questions 4

What word is missing from the following SQL statement?

insert into tablename ________(909, 'text');

(Please specify the missing word using lower-case letters only.)

A. VALUES -or- values

Buy Now
Questions 5

After issuing:

function myfunction { echo $1 $2 ; }

in Bash, which output does:

myfunction A B C

Produce?

A. A B

B. A B C

C. A C

D. B C

E. C B A

Buy Now
Questions 6

Which of the following commands lists all defined variables and functions within Bash?

A. env

B. set

C. env -a

D. echo $ENV

Buy Now
Questions 7

Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)

A. The user issuing the command must be in the group script.

B. The script file must be found in the $PATH.

C. The script file must have the executable permission bit set.

D. The script must begin with a shebang-line (#!) that points to the correct interpreter.

E. The file system on which the script resides must be mounted with the option scripts.

Buy Now
Questions 8

On a machine running several X servers, how are the different instances of the X11 server identified?

A. By a fixed UUID that is defined in the X11 configuration file.

B. By a unique IPv6 address from the fe80: : /64 subnet.

C. By the name of the user that runs the X server like x11 :bob.

D. By a device name like /dev/X11/xservers/1.

E. By a display name like: 1.

Buy Now
Questions 9

What is true regarding the command userdel --force --remove bob? (Choose TWO correct answers.)

A. The user bob is removed from the system's user database.

B. The user bob's home directory is removed.

C. The locate database is updated to drop files owned by bob.

D. All files owned by bob are remove from all mounted filesystems.

E. In case bob was the last member of a group, that group is deleted.

Buy Now
Questions 10

Which option in the /etc/ntp.conf file specifies an external NTP source to be queried for time information? (Specify ONLY the option without any values or parameters.)

A. server

Buy Now
Questions 11

What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)

A. route del default

B. ifconfig unset default

C. netstat -r default

D. ip route del default

E. sysctl ipv4.default_gw=0

Buy Now
Questions 12

What is true regarding TCP port 23?

A. Port 23 is the well known port for the telnet service which is a plain text protocol that should no longer be used.

B. Port 23 is the well known port for the SSH service which provides secure logins.

C. Port 23 is the well known port for the rlogin service which is SSL secured by default.

D. Port 23 is the well known port for the system login services which are encrypted when the user runs the starttls command in his login shell.

Buy Now
Questions 13

Which of the following programs can be used to determine the routing path to a given destination?

A. dig

B. netstat

C. ping

D. route

E. traceroute

Buy Now
Exam Code: LX0-104
Exam Name: CompTIA Linux+ [Powered by LPI] 2
Last Update: Nov 17, 2024
Questions: 178
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99