Free Linux Essentials Practice Questions
100 free questions · Answer explanations · No signup required
View examination details, outline and sourcesLoading selected examination banks…
Sample Practice Questions
Try these 10 sample questions from the Linux Essentials practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.
1Which Linux component arbitrates CPU time and direct access to physical memory?
- A. The command shell
- B. The operating system kernel
- C. The package manager
- D. The graphical desktop
Answer: B
Explanation: "It controls direct access to hardware resources such as CPU time, physical memory, storage devices, network interfaces, and hardware interrupts." The kernel manages these hardware resources. The shell interprets commands, the package manager manages software, and the desktop provides a graphical environment; these run in userspace.
Reference: LPI Linux Essentials 2.0 — 011.1 Lesson 1: Linux Distributions — Kernel and Userspace
2Which Bash command reports whether a command name resolves to a built-in, alias, function, or external executable?
- A. env
- B. type
- C. export
- D. history
Answer: B
Explanation: "The type command shows how a given command name is resolved by the shell." type examines command resolution. env displays the exported environment, export marks variables for inheritance, and history lists past commands.
Reference: LPI Linux Essentials 2.0 — 012.1 Lesson 1: Command Line Usage — Command Behavior Types
3bundle.tar already contains an old directory tree. Which GNU tar command replaces it with a fresh uncompressed archive containing only project and its contents?
- A. tar -tf bundle.tar project
- B. tar -xf bundle.tar project
- C. tar -uf bundle.tar project
- D. tar -cf bundle.tar project
Answer: D
Explanation: "The -c option instructs tar to create a new archive file, and the -f option specifies the name of the archive file to be created." The GNU manual adds: "tar will erase the current contents of the file named by". Thus -cf creates a fresh archive at that filename. -tf lists and -xf extracts; -uf adds updates and retains old members, so it does not meet the replacement requirement.
Reference: LPI Linux Essentials 2.0 — 013.1 Lesson 1: File Archives and Compression — Archiving Tools
4What does an ISO installation image represent when installing Linux?
- A. A list of packages already installed on a running system
- B. A bootloader configuration file containing startup menu entries
- C. A single file containing the contents of installation media
- D. A compressed copy of a user's home directory
Answer: C
Explanation: "An ISO image is a single file containing the complete contents of an installation medium, such as a DVD or bootable USB drive." The image represents the complete installation medium. A package inventory, a bootloader configuration file, or a backup of one user home directory each represents only a different, limited artifact.
Reference: LPI Linux Essentials 2.0 — 014.1 Lesson 1: Linux Installation and Provisioning — Installation Media and ISO Files
5Under a typical sudo policy requiring password authentication, whose password does sudo normally request before an authorized user runs an administrative command?
- A. The root account's password
- B. The invoking user's password
- C. The service account's password
- D. The file owner's password
Answer: B
Explanation: "Unlike su, sudo usually asks for the password of the current user:" With the stated typical policy, sudo authenticates the invoking user. This differs from su's normal target-account password prompt; file ownership or the service account does not select the sudo password.
Reference: LPI Linux Essentials 2.0 — 015.1 Lesson 1: Remote Logins, File Transfers and Elevated Permissions — Switching Users and Escalating Privilege
6From which Linux distribution family is Ubuntu originally derived?
- A. The SUSE family
- B. The Alpine family
- C. The Debian family
- D. The Red Hat family
Answer: C
Explanation: "Ubuntu is another Debian-based distribution worth mentioning." Ubuntu derives from Debian. SUSE, Alpine, and Red Hat identify other distribution families rather than Ubuntu's lineage.
Reference: LPI Linux Essentials 2.0 — 011.1 Lesson 1: Linux Distributions — Debian-based Distributions
7How does Bash execute a shell built-in command?
- A. By expanding the replacement text of a command alias
- B. By launching a script found in the current directory
- C. By executing code implemented within the shell
- D. By launching a separate executable found through PATH
Answer: C
Explanation: "Built-in commands that are implemented directly within the shell (such as Bash)." Built-ins execute code supplied by the shell itself. Alias expansion rewrites command text, and launching a script or PATH executable uses an external command instead of describing built-in implementation.
Reference: LPI Linux Essentials 2.0 — 012.1 Lesson 1: Command Line Usage — Command Behavior Types / Internal
8Which GNU tar command lists the members of backup.tar without extracting them?
- A. tar -cf backup.tar
- B. tar -tf backup.tar
- C. tar -xf backup.tar
- D. tar -uf backup.tar
Answer: B
Explanation: "To view the contents of a tarball, use the t option of tar:" -t lists archive members. Creation, extraction, and update modes serve different operations; they are not a member listing.
Reference: LPI Linux Essentials 2.0 — 013.1 Lesson 1: File Archives and Compression — Archiving Tools / tar -tf example
9How does a conventional dual boot installation use two operating systems on one computer?
- A. It selects one operating system to run at startup.
- B. It runs one operating system inside the other's kernel.
- C. It runs both operating systems simultaneously as containers.
- D. It merges both operating systems into one userspace.
Answer: A
Explanation: "During system startup, the user chooses which operating system to boot." Dual boot chooses one installed operating system at boot, with one running at a time. It does not imply a shared kernel, simultaneous container execution, or merged userspaces.
Reference: LPI Linux Essentials 2.0 — 014.1 Lesson 1: Linux Installation and Provisioning — Dual Boot
10Which command requests an SSH login as user alex on server.example.com?
- A. host before at sign: `ssh server.example.com@alex`
- B. user before colon: `ssh alex:server.example.com`
- C. user before at sign: `ssh alex@server.example.com`
- D. host before colon and slash: `ssh server.example.com:/alex`
Answer: C
Explanation: "$ ssh <username>@<remote_host>" SSH puts the remote username before @ and the remote host after it. The alternatives reverse those roles or confuse SSH login syntax with colon-based remote-file notation.
Reference: LPI Linux Essentials 2.0 — 015.1 Lesson 1: Remote Logins, File Transfers and Elevated Permissions — Remote Logins and Operations Using SSH / syntax
Topics in this practice bank
These topics describe the available practice for Linux Essentials. Review the examination outline and its sources for scope and allocation details.
The Linux Operating System and Open Source Software
- Linux Distributions
- Major Open Source Applications
- Open Source Software and Licensing
- Linux Usage
Command Line Basics
- Command Line Usage
- Documentation, Man Pages and Usage Information
- Files, Directories and Paths
- File and Directory Management
Data Processing
- File Archives and Compression
- Redirections and String Processing
- Shell Scripting Basics
Linux System Administration Basics
- Linux Installation and Provisioning
- Computer Hardware and Device Access
- Processes and Log Messages
- Network Configuration
Security and File System Permissions
- Remote Logins, File Transfers and Elevated Permissions
- User and Group Management
- File System Permissions and Ownership
- Special Directories and Files
How to use these free practice questions
Choose an answer, check the explanation, and review your progress by chapter. Practice questions and explanations are free to access without signing up.
These are independent study questions, not actual examination items. For examination requirements and official information, view Linux Essentials details.