LPI 010-160 Linux Essentials Certificate, version 1.6 Exam Practice Test

Page: 1 / 14
Total 80 questions
Question 1

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?



Answer : E


Question 2

Running the command rm Downloads leads to the following error:

rm: cannot remove 'Downloads/': Is a directory

Which of the following commands can be used instead to remove Downloads, assuming Downloads is

empty? (Choose two correct answers.)



Answer : B, E


Question 3

What is the purpose of the PATH environment variable?



Answer : A


Question 4

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

See Below Explanation:




Answer : A


Question 5

Most commands on Linux can display information on their usage. How can this information typically be displayed?



Answer : E


Question 6

When typing a long command line at the shell, what single character can be used to split a command across multiple lines?

See Below Explanation:




Answer :


Question 7

Members of a team already have experience using Red Hat Enterprise Linux. For a small hobby project, the team wants to set up a Linux server without paying for a subscription. Which of the following Linux distributions allows the team members to apply as much of their Red Hat Enterprise Linux knowledge as possible?



Answer : D


Page:    1 / 14   
Total 80 questions