Limited Time Discount Offer 30% Off - Ends in 02:00:00

×

CompTIA Linux+ LX0-104 Exam - CompTIA Linux+ Powered by LPI 2

Download Free CompTIA LX0-104 Exam Questions

Questions & Answers for CompTIA LX0-104

Showing 1-15 of 120 Questions

Question #1 - Topic 1

What is the purpose of the file /etc/profile?

A. It contains the welcome message that is displayed after login.

B. It contains security profiles defining which users are allowed to log in.

C. It contains environment variables that are set when a user logs in.

D. It contains default application profiles for users that run an application for the first time.

Question #2 - Topic 1

What word is missing from the following SQL statement?
insert into tablename ________(909, 'text');
(Please specify the missing word using lower-case letters only.)

VALUES, values

Question #3 - Topic 1

What is the difference between the commands test -e path and test -f path?

A. They are equivalent options with the same behaviour.

B. The -f option tests for a regular file. The -e option tests for an empty file.

C. Both options check the existence of the path. The -f option also confirms that it is a regular file.

D. The -f option tests for a regular file. The -e option tests for an executable file.

Question #4 - Topic 1

Which of the following words is used to restrict the records that are returned from a
SELECT SQL query based on a supplied criteria for the values in the records?

A. CASE

B. FROM

C. WHERE

D. IF

Question #5 - Topic 1

By default, the contents of which directory will be copied to a new user's home directory
when the account is created by passing the -m option to the useradd command? (Specify
the full path to the directory.)

/etc/skel

Question #6 - Topic 1

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

Question #7 - Topic 1

What command displays all aliases defined in the current shell? (Specify the command
without any path information)

alias, alias -p

Question #8 - Topic 1

How can the existing environment variable FOOBAR be suppressed for the execution of
the script./myscript only?

A. unset -v FOOBAR;./myscript

B. set -a FOOBAR="";./myscript

C. env -u FOOBAR./myscript

D. env -i FOOBAR./myscript

Question #9 - Topic 1

Which of the following commands puts the output of the command date into the shell
variable mydate?

A. mydate="$(date)"

B. mydate="exec date"

C. mydate="$((date))"

D. mydate="date"

E. mydate="${date}"

Question #10 - Topic 1

When the command echo $ outputs 1, which of the following statements is true?

A. It is the process ID of the echo command.

B. It is the process ID of the current shell.

C. It is the exit value of the command executed immediately before echo.

D. It is the exit value of the echo command.

Question #11 - Topic 1

What output will the following command produce?
seq 1 5 20

A. 1

B. 1

C. 1

D. 2

E. 5

Question #12 - Topic 1

What output will the command seq 10 produce?

A. A continuous stream of numbers increasing in increments of 10 until stopped.

B. The numbers 1 through 10 with one number per line.

C. The numbers 0 through 9 with one number per line.

D. The number 10 to standard output.

Question #13 - Topic 1

When the command echo $$ outputs 12942, what is the meaning of 12942?

A. It is the process ID of the echo command.

B. It is the process ID of the current shell.

C. It is the process ID of the last command executed.

D. It is the process ID of the last command which has been placed in the background.

Question #14 - Topic 1

Which of the following SQL queries counts the number of occurrences for each value of the
field order_type in the table orders?

A. SELECT order_type,COUNT(*) FROM orders WHERE order_type=order_type;

B. SELECT order_type,COUNT(*) FROM orders GROUP BY order_type;

C. COUNT(SELECT order_type FROM orders);

D. SELECT COUNT(*) FROM orders ORDER BY order_type;

E. SELECT AUTO_COUNT FROM orders COUNT order_type;

Question #15 - Topic 1

Which command makes the shell variable named VARIABLE visible to subshells?

A. export $VARIABLE

B. export VARIABLE

C. set $VARIABLE

D. set VARIABLE

E. env VARIABLE

Try Our Special 30% Discount Offer for
Premium LX0-104 VCE File

  • Verified by experts

LX0-104 Premium File

  • Real Questions
  • Last Update: Dec 7, 2019
  • 100% Accurate Answers
  • Fast Exam Update

$14.99

$21.41

WINTER SALE: 30% DISCOUNT
This is ONE TIME OFFER

You save
30%

Enter Your Email Address to Receive Your 30% Discount Code

WINTER SALE: 30% DISCOUNT

You save
30%

Use Discount Code:

A confirmation link was sent to your e-mail.

Please check your mailbox for a message from support@exam-labs.com and follow the directions.

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your e-mail address below to get started with our interactive software demo of your free trial.

  • Realistic exam simulation and exam editor with preview functions
  • Whole exam in a single file with several different question types
  • Customizable exam-taking mode & detailed score reports