Free 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0 Exam Questions and Answers
121 verified practice questions for 102-500.
The first 10 questions on this page are free to read, answers included — no account and no card. A plan opens the rest of the bank, the full timed practice test and your weak-topic reporting.
Last updated: September 19, 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?
Please select an optionIncorrectCorrect answer: C
Both -e and -f test whether the path exists, but -f additionally requires it to be a regular file.
Was this answer correct?Question #2
Which command allows you to make a shell variable visible to subshells?
Please select an optionIncorrectCorrect answer: B
export VARIABLE places the existing shell variable in the environment so that subshells inherit it; writing $VARIABLE would export its value instead.
Was this answer correct?Question #3
What output will the command seq 10 produce?
Please select an optionIncorrectCorrect answer: B
seq 10 prints the integers from 1 to 10, each on its own line.
Was this answer correct?Question #4
Which of the following SQL statements will select the fields name and address from the contacts table?
Please select an optionIncorrectCorrect answer: C
SQL lists the columns to return separated by commas after SELECT, so the statement is SELECT name, address FROM contacts.
Was this answer correct?Question #5
Which of the following files, when existing, affect the behavior of the Bash shell? (Choose TWO correct answers.)
Select 2 answers.
Please select an optionIncorrectCorrect answer: B, E
~/.bashrc is read by interactive non-login shells and ~/.bash_profile by login shells; bash does not use the other file names.
Was this answer correct?Question #6
Which of the following commands puts the output of the command date into the shell variable mydate?
Please select an optionIncorrectCorrect answer: A
Command substitution $(date) captures the output of date and assigns it to the variable mydate.
Was this answer correct?Question #7
Which command makes the shell variable named VARIABLE visible to subshells?
Please select an optionIncorrectCorrect answer: B
export VARIABLE adds the shell variable to the environment, making it visible to subshells.
Was this answer correct?Question #8
What benefit does an alias in bash provide?
Please select an optionIncorrectCorrect answer: D
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.
Was this answer correct?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?
Please select an optionIncorrectCorrect answer: B
GROUP BY order_type collects the rows per value of that field and COUNT(*) counts the rows in each group.
Was this answer correct?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.
Please select an optionIncorrectCorrect answer: B, C, D
The script must be executable, located through $PATH and start with a shebang naming its interpreter; group membership and mount options are irrelevant.
Was this answer correct?
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.
Other 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)
Reviews
★★★★★
This platform is a lifesaver. The practice questions and explanations are so detailed. It’s the best study tool I’ve ever used.
Hannah Smith
USA
★★★★★
I highly recommend Exam Practice. The feedback after each test helped me improve significantly, and I passed my exams easily.
Oscar Nyström
Sweden
★★★★★
Exam Practice is worth every penny. The mock exams are realistic, and the feedback helped me focus on key areas.
Amit Sharma
India



