102-500 Shell Practice Questions
The free 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0 questions that deal with shell, with answers and explanations. The full bank and the timed practice test cover every topic the exam asks about.
Question #2
Which command allows you to make a shell variable visible to subshells?
Correct answer: B
Explanation
export VARIABLE places the existing shell variable in the environment so that subshells inherit it; writing $VARIABLE would export its value instead.
Question #10
Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)
Select 3 answers.
Correct answer: B, C, D
Explanation
The script must be executable, located through $PATH and start with a shebang naming its interpreter; group membership and mount options are irrelevant.
Continue with 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0
Unlock the full question bank
You have read the first 10 questions. A subscription opens every question in 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0, the full timed practice test, and your progress and weak-topic reporting.
Single exam
$19.99for 30 days
Full question bank and practice test for one exam, for 30 days.
Single exam
$49.99for 1 year
One exam for a full year. Nothing renews and nothing to cancel.
Full access
$39.99/mo
Every exam in the catalogue, month to month.
Full access
$199.99/yr
Every exam in the catalogue for a year.
Already subscribed? Sign in to pick up where you left off.
All 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0 practice questions →
