ExamGecko
Home / LPI / 010-160 / List of questions
Ask Question

LPI 010-160 Practice Test - Questions Answers, Page 7

List of questions

Question 61

Report Export Collapse

What is the purpose of the PATH environment variable?

Become a Premium Member for full access
  Unlock Premium Member

Question 62

Report Export Collapse

Which of the following commands sets the variable USERNAME to the value bob?

Become a Premium Member for full access
  Unlock Premium Member

Question 63

Report Export Collapse

FILL BLANK

What command displays manual pages? (Specify ONLY the command without any path or parameters.)

Become a Premium Member for full access
  Unlock Premium Member

Question 64

Report Export Collapse

Which command copies the contents of the directory /etc/, including all sub-directories, to /root/?

Become a Premium Member for full access
  Unlock Premium Member

Question 65

Report Export Collapse

Which of the following commands puts the lines of the file data.csv into alphabetical order?

Become a Premium Member for full access
  Unlock Premium Member

Question 66

Report Export Collapse

Which of the following examples shows the general structure of a for loop in a shell script?

Become a Premium Member for full access
  Unlock Premium Member

Question 67

Report Export Collapse

Which operator in a regular expression matches the preceding character either zero or one time?

Become a Premium Member for full access
  Unlock Premium Member

Question 68

Report Export Collapse

The file script.sh in the current directory contains the following content:

#!/bin/bash echo $MYVAR

The following commands are used to execute this script:

MYVAR=value

./script.sh

The result is an empty line instead of the content of the variable MYVAR. How should MYVAR be set in order to make script.sh display the content of MYVAR?

Become a Premium Member for full access
  Unlock Premium Member

Question 69

Report Export Collapse

What is the return value of a shell script after successful execution?

Become a Premium Member for full access
  Unlock Premium Member

Question 70

Report Export Collapse

Which of the following commands creates the ZIP archive poems.zip containing all files in the current directory whose names end in .txt?

Become a Premium Member for full access
  Unlock Premium Member
Total 80 questions
Go to page: of 8