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
Answer: B
102-500 LPI Level 1 exam is a hot Lpi certification exam, Exam4Training offers you the latest free online 102-500 dumps to practice. You can get online training in the following questions, all these questions are verified by Lpi experts. If this exam changed, we will share new update questions.
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
Answer: B
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.
Answer: C
The X11 configuration file xorg.conf is grouped into sections.
How is the content of the section SectionName associated with that section?
A . It is placed in curly brackets as in Section SectionName { … }.
B . It is placed between a line containing Section "SectionName" and a line containing EndSection.
C . It is placed between the tags <Section name="SectionName"> and </Section>
D . It is placed after the row [SectionName].
E . It is placed after an initial unindented Section "SectionName" and must be indented by exactly one tab character.
Answer: B
What output will the following command produce?
seq 1 5 20
A . 1 6 11 16
B . 1 5 10 15
C . 1 2 3 4
D . 2 3 4 5
E . 5 10 15 20
Answer: A
CORRECT TEXT
What is the default name of the configuration file for the Xorg X11 server? (Specify the file name only without any path.)
Answer: xorg.conf
Which command will set the local machine’s timezone to UTC?
A . cat UTC > /etc/timezone
B . ln -s /usr/share/zoneinfo/UTC /etc/localtime
C . date –timezone=UTC
D . mv /usr/timezone/UTC /etc
Answer: B
What keyword is missing from this code sample of a shell script?
____ i in *.txt; do
echo $i
done
A . for
B . loop
C . until
D . while
Answer: A
How is the file format of /etc/crontab different from a normal crontab file? (Select TWO correct answers)
A . The /etc/crontab file can specify a year field.
B . A normal crontab file must be installed with the crontab command.
C . A normal crontab file allows for environment variable substitution.
D . The /etc/crontab file has a user field for commands.
Answer: B,D
What is the purpose of the Sticky Keys feature in X?
A . To assist users who have difficulty holding down multiple keys at once
B . To prevent repeated input of a single character if the key is held down
C . To ignore brief keystrokes according to a specified time limit
D . To repeat the input of a single character
Answer: A
Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.)
A . Start and prepare the desktop environment for the user.
B . Configure additional devices like new monitors or projectors when they are attached.
C . Handle the login of a user.
D . Lock the screen when the user was inactive for a configurable amount of time.
E . Create an X11 configuration file for the current graphic devices and monitors.
Answer: A,C