LPIC-1 GNU and Unix Commands Practice Question
Exhibit
$ ls -l /usr/local/bin/myapp -rwxr-xr-x 1 root root 12345 Jan 15 10:00 /usr/local/bin/myapp $ file /usr/local/bin/myapp /usr/local/bin/myapp: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=abc123, not stripped $ ldd /usr/local/bin/myapp linux-vdso.so.1 (0x00007ffe12345000) libfoo.so.1 => not found libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1234500000) /lib64/ld-linux-x86-64.so.2 (0x00007f1234560000)
Refer to the exhibit. A user reports that the 'myapp' command fails to run. Based on the output, what is the most likely cause?
⚠ Common exam trap
LPI often tests the distinction between file permissions (executable bit) and runtime library dependencies, leading candidates to mistakenly choose 'file not executable' when the real issue is a missing shared library.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
A required shared library (libfoo.so.1) is missing.
The error message 'error while loading shared libraries: libfoo.so.1: cannot open shared object file: No such file or directory' indicates that the dynamic linker cannot locate the required shared library libfoo.so.1. This is the most likely cause because the 'myapp' binary is linked against this library, and without it, the program cannot start.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The interpreter path is incorrect.
Why it's wrong here
The interpreter path /lib64/ld-linux-x86-64.so.2 is standard and exists.
- ✗
The file is not a valid ELF executable.
Why it's wrong here
The file command confirms it is an ELF 64-bit executable.
- ✓
A required shared library (libfoo.so.1) is missing.
Why this is correct
ldd shows libfoo.so.1 => not found, which will cause the dynamic linker to fail.
- ✗
The file is not executable for the user.
Why it's wrong here
The file has execute permission for owner, group, and others (rwxr-xr-x).
Go deeper
Related to this question
About these practice questions
Courseiva writes every LPIC-1 question from scratch — 527 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.