102-500 Commands Practice Questions
The free 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0 questions that deal with commands, with answers and explanations. The full bank and the timed practice test cover every topic the exam asks about.
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.
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.
All 102-500: LPIC-1 Exam 102 - Part 2 of 2 - version 5.0 practice questions →
