Free 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0 Exam Questions and Answers
LPIC-1 Exam 102 - Part 2 of 2 - version 5.0 (102-500) is an LPI certification exam. This page has free 102-500 practice questions with answers and explanations, set out the way the real exam asks them, plus a timed 102-500 practice test that scores you against the pass mark.
Looking for 102-500 exam dumps or ExamTopics 102-500 questions? These 102-500 practice questions cover the same ground with verified answers and explanations, a downloadable 102-500 PDF and a full 102-500 practice test, kept current as LPI updates the exam.
Last updated: October 11, 2026
- Exam code
- 102-500
- Provider
- LPI
- Questions in our bank
- 1000+
- Free to read
- First 10, with answers
- Our test mode duration & pass mark
- 130 mins · 70%
- Verified answers
- Reviewed weekly
Recommended: Switch to Test Mode to start a practice test that simulates the real exam experience.
Question #1
What is the difference between the commands test -e path and test -f path?
Correct answer: C
Explanation
Both -e and -f test whether the path exists, but -f additionally requires it to be a regular file.
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.
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.
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.
Question #3
What output will the command seq 10 produce?
Correct answer: B
Explanation
seq 10 prints the integers from 1 to 10, each on its own line.
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.
Question #4
Which of the following SQL statements will select the fields name and address from the contacts table?
Correct answer: C
Explanation
SQL lists the columns to return separated by commas after SELECT, so the statement is SELECT name, address FROM contacts.
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.
Question #5
Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)
Select 2 answers.
Correct answer: B, E
Explanation
~/.bashrc is read by interactive non-login shells and ~/.bash_profile by login shells; bash does not use the other file names.
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.
Question #6
Which of the following commands puts the output of the command date into the shell variable mydate?
Correct answer: A
Explanation
Command substitution $(date) captures the output of date and assigns it to the variable mydate.
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.
Question #7
Which command makes the shell variable named VARIABLE visible to subshells?
Correct answer: B
Explanation
export VARIABLE adds the shell variable to the environment, making it visible to subshells.
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.
Question #8
What benefit does an alias in bash provide?
Correct answer: D
Explanation
An alias substitutes a string for the first word of a simple command, so a short name can stand for a longer command with options.
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.
Question #9
Which of the following SQL queries counts the number of occurrences for each value of the field order_type in the table orders?
Correct answer: B
Explanation
GROUP BY order_type collects the rows per value of that field and COUNT(*) counts the rows in each group.
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.
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.
Discussion
Explain your reasoning, not just the letterOther LPI certifications
- 101-500: LPIC-1 Exam 101 - Part 1 of 2 - version 5.0 (opens in a new tab)
- 201-450: LPIC-2 Exam 201 Part 1 of 2 version 4.5 (opens in a new tab)
- 202-450: LPIC-2 Exam 202 Part 2 of 2 version 4.5 (opens in a new tab)
- 010-160: Linux Essentials Certificate Exam - version 1.6 (opens in a new tab)
- 010-150: Linux Essentials (opens in a new tab)
- 303-200: LPIC-3 Exam 303: Security, version 2.0 (opens in a new tab)
- 300-300: LPIC-3: Mixed Environments - Exam 300 - version 3.0 (opens in a new tab)
Reviews
Write a review★★★★★
Exam Practice is worth every penny. The mock exams are realistic, and the feedback helped me focus on key areas.
Amit SharmaVerified buyer
★★★★★
I highly recommend Exam Practice. The feedback after each test helped me improve significantly, and I passed my exams easily.
Oscar NyströmVerified buyer
★★★★★
This platform is a lifesaver. The practice questions and explanations are so detailed. It’s the best study tool I’ve ever used.
Hannah SmithVerified buyer
FAQ
Learn More: https://www.lpi.org/our-certifications/
- Q1: What is the 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0 exam?
- A: 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0 is a LPI certification exam. Judging by the questions in our bank, it concentrates on commands, bash, nsswitch.conf, shell and crontab.
- Q2: What topics does the 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0 exam cover?
- A: Questions in our 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0 bank cluster around commands, bash, nsswitch.conf, shell, crontab, variable, script and login. Working through the full set is the quickest way to find which of these you are weakest on.
- Q3: How should I prepare for 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0?
- A: Work through the 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0 practice questions here, checking your answer on each one, then sit the practice test to rehearse the exam under timed conditions before the real thing.
- Q4: Are these real 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0 exam questions?
- A: They are drawn from officially released past questions and from community members who have sat 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0. Answers are verified and updated weekly.
- Q5: Where do I register for the 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0 exam?
- A: Register through LPI directly. Exampractice is not affiliated with LPI and does not administer the exam.
- Q6: Is there a free 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0 sample?
- A: Yes. Every 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0 page shows a free sample of real questions. Upgrading opens the full bank and the practice test.



