LX0-104

LX0-104 practice questions, page 3 of 7, with answer review and explanations.

Question 11

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

  1. export $VARIABLE
  2. export VARIABLE
  3. set $VARIABLE
  4. set VARIABLE
  5. env VARIABLE

Question 12

What output will the command seq 10 produce?

  1. A continuous stream of numbers increasing in increments of 10 until stopped.
  2. The numbers 1 through 10 with one number per line.
  3. The numbers 0 through 9 with one number per line.
  4. The number 10 to standard output.

Question 13

SIMULATION - 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.)

Question 14

SIMULATION - What word is missing from the following SQL statement? __________ count(*) from tablename; (Please specify the missing word using lower-case letters only.)

Question 15

Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)

  1. ~/.bashconf
  2. ~/.bashrc
  3. ~/.bashdefaults
  4. ~/.bash_etc
  5. ~/.bash_profile