LPI
LPI Linux Essentials
Question 1 of 225Which of the following is the act of creating a virtual version of components such as storage devices and computer network resources called?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Virtualization
Virtualization is the process of creating virtual representations of physical resources, such as storage or networks. On the exam, expect virtualization to map directly to hypervisor concepts and resource abstraction.
Question 2 of 225What does GUI stand for?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. Graphical User Interface
GUI stands for Graphical User Interface, allowing users to interact with a system using visual icons and windows. Do not confuse this with a command line interface, which relies entirely on typed text commands.
Question 3 of 225What directly controls hardware and translates the commands from a piece of software into something the hardware can understand and act upon?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Kernel
The kernel acts as the core bridge between software and physical hardware, managing all system resources directly. Finder and Explorer are graphical file managers, not core system components managing hardware.
Question 4 of 225Which of the following is an American non-profit organization devoted to expanding the range of creative works available for others to build upon legally and to share?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Creative Commons
Creative Commons provides standardized copyright licenses that allow creators to specify how others can legally share and build upon their work. Remember this for open source licensing objectives alongside GPL and MIT.
Question 5 of 225What is the generic name given to the action of protecting shell meta-characters from being treated specially by the shell?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Quoting
Quoting prevents the shell from interpreting special metacharacters, treating them as standard text instead. Use backslashes for single characters or quotes for longer strings to avoid unwanted globbing or expansion.
Question 6 of 225Which option will cause the echo command NOT to output a trailing newline?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. -n
The -n option suppresses the trailing newline, modifying the default behavior of the echo command. On the exam, associate -n with no newline, while the printf command handles formatting.
Question 7 of 225Which of the following commands will output a list of all of the file names under your home directory and all subdirectories with file names ending with .pdf?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. find ~ -name '*.pdf'
Using find with the tilde searches the home directory, and the -name flag matches the pdf pattern recursively. Remember that ls lacks this recursive name matching capability.
Question 8 of 225What is the set of pages that explains every command available on the system?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Man pages
Manual pages provide comprehensive documentation for commands, configuration files, and system calls. If you need detailed command syntax, man is the standard utility to use.
Question 9 of 225Your current working directory is /home/jason/documents/. You just entered cd .. into the command line and then entered pwd. What output do you receive?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. /home/jason
The double dot represents the parent directory, so cd .. moves up one level to the jason folder. Printing the working directory then outputs the absolute path of that location.
Question 10 of 225Which of the following options must be used to remove a directory and its subdirectories?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. rm -r
The rm command with the recursive flag deletes both the directory and its contents completely. Remember that rmdir only works on directories that are already empty.
Question 11 of 225Which of the following is NOT a valid rule in naming a variable?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Variable names must start with numbers
Variables cannot start with a number, though numbers are allowed elsewhere in the name. They must begin with a letter or an underscore, making this the correct choice.
Question 12 of 225What is the proper command to compress the file filename.txt into a zip archive called myfile.zip?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. zip myfile.zip filename.txt
The correct syntax places the intended output archive name before the source file name. The unzip command extracts archives, so it is the wrong utility for compression.
Question 13 of 225What statement is used to get input from the terminal when a shell script is being run?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. read
The read command captures standard input from the terminal during script execution, assigning it to a variable. Commands like input or scan are not built-in shell commands.
Question 14 of 225Which option can be used with tail to print the last 10 lines of a file and then keep printing any new lines that may be added continuously?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. -f
The follow option keeps the file open and continuously displays new lines as they are appended. This is heavily used for monitoring active system logs in real time.
Question 15 of 225Which of the following commands will create an archive file, named backup.tar, containing all the files from the directory /home?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. tar -cf backup.tar /home
The -c flag creates a new archive and the -f flag specifies the archive file name, placing the filename immediately after. Using -x extracts files instead of creating them, making the other options fail.
Question 16 of 225Which command is used to print the first 10 lines of a file to the display?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. head
The head command prints the first ten lines of a file by default. The tail command outputs the last ten lines, while cat outputs the entire file.
Question 17 of 225After installing a new package, in which directory are you most likely to find its configuration file?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. /etc
The /etc directory specifically stores system and application configuration files. The /lib directory holds shared libraries, while /usr contains user utilities and programs.
Question 18 of 225Which of the following directories is often used to store log files?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. /var
The /var directory contains variable data like system logs, specifically within /var/log. The /usr directory holds static application data, while /temp is incorrect.
Question 19 of 225Which of the following is used as a virtual or pseudo filesystem to provide a tree of all of the device nodes and drivers in the running kernel?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. /dev
The /dev directory contains device nodes that provide user space access to the device drivers running in the kernel. Do not confuse this with /sys, which exposes kernel subsystem information and hardware topology, or /proc, which contains process and memory data.
Question 20 of 225Which type of link points to another file like a shortcut in Windows or a Macintosh alias?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Symbolic link
A symbolic link acts as a pointer to another file path, similar to a Windows shortcut. A hard link points directly to the data on the disk, so deleting the original file does not break a hard link.
Question 21 of 225Which type of link contains the data in the target file?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Hard link
A hard link points directly to the inode data on the disk rather than just referencing a file path. Symbolic links act as mere shortcuts, which break entirely if the original target file is deleted.
Question 22 of 225Which of the following tasks is not performed automatically for a user account when it is created using the useradd command?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. Create the user's home directory
The useradd command does not automatically create the home directory unless the capital M option is supplied. Note that without configuration changes, assigning the home path and creating the directory can be ambiguous on some distributions.
Question 23 of 225Which of the following does Raspberry Pi OS run on?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Raspberry Pi
Raspberry Pi OS, formerly known as Raspbian, is a Debian-based distribution specifically optimized to run on Raspberry Pi hardware. For the exam, associate SBCs like the Raspberry Pi with low-cost embedded deployments.
Question 24 of 225Which of the following programs on a Linux system could you use as a replacement for Microsoft Word?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. Writer
Writer is the word processing application included in the LibreOffice suite, serving as a standard alternative to Microsoft Word. Note that Pico and Nano are plain text editors used in terminals, not full word processors.
Question 25 of 225Which of the following can be used to represent a single number from 3 to 9?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. [3-9]
The bracket range [3-9] tells the shell to match exactly one character from three through nine. Remember that ranges must be specified in ascending order and match individual characters, not multi-digit numbers.
Question 26 of 225Which of the following is a valid option for a typical command to get its built-in usage information?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. --help
The long option --help is universally recognized by most command line utilities to display quick usage information. While man pages provide comprehensive manuals, --help gives a rapid summary directly in the terminal.
Question 27 of 225Which command is used to make a shell variable known to subsequently executed programs?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. export
The export command makes a shell variable available to subsequently executed programs by placing it into the environment. The env command only displays the current environment or runs a command in a modified one without exporting variables.
Question 28 of 225What option can be used with cat to display line numbers with the text of a file to the screen?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. -n
The -n option displays line numbers next to a file's contents when viewed with cat. The -x flag is not used here, and the pound sign is purely a comment indicator in shell scripts.
Question 29 of 225Which of the following is a requirement of the GPL license but not the BSD license?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. Users who modify and distribute the software under the GPL license must make the modifications they made available to the recipients under the same license
The GPL license is copyleft, meaning modified versions must be distributed under the exact same license. The BSD license is permissive and allows code modifications without requiring derivative works to remain open source.
Question 30 of 225Which of the following files holds the definition of the local user accounts?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. /etc/passwd
The /etc/passwd file stores the basic attributes and definitions for local user accounts on the system. The other options resemble Windows paths and are entirely invalid in standard Linux account management.
Question 31 of 225Which of the following commands is used to show the information about a directory or a symbolic link?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. ls -d
The ls -d command displays information about a directory or symbolic link itself, rather than listing its internal contents. The -s flag prints file sizes, while ln is used to create links instead of listing them.
Question 32 of 225Which of the following is an example of embedded Linux?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. Android
Android is built on the Linux kernel and is designed for embedded systems like smartphones and tablets. Traditional desktop or server distributions like Fedora are not typically categorized as embedded operating systems.
Question 33 of 225Which of the following is the correct order of a computer's operation?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. (1) The computer waits for user input, (2) The user selects a command and enters it via the keyboard or mouse, (3) The computer executes the command
The basic computer operation cycle involves waiting for user input, receiving a command, and executing it. The computer cannot execute the command before the user inputs it.
Question 34 of 225What permissions does foo1.txt have after running chmod 644 foo1.txt?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: A. foo1.txt is readable/writeable by the owner
Octal mode 644 grants read and write permissions to the owner, and read-only permissions to the group and everyone else. Watch for options like writeable by everyone, which would require a 6 or 7 in the last octet.
Question 35 of 225A file currently has permissions of 755. Which of the following commands would change file permissions to r-xr--r--?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: D. chmod 544 filename
The octal value 544 directly translates to read and execute for the owner, and read-only for the group and others. Remember that execute is one, write is two, and read is four when calculating these permissions.
Question 36 of 225What is one of the most basic features of a shell script?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: B. The ability to run commands
A shell script is fundamentally designed to execute commands in sequence. While scripts can accept input or display output, the most basic function is running standard utilities, which entirely rules out compiling programs.
Question 37 of 225Which of the following displays network connections for Transmission Control Protocol, routing tables, and a number of network interface and network protocol statistics?
Tap an answer — you get instant feedback and the reasoning.
Show answer & explanation
Correct answer: C. netstat
The netstat command displays network connections, routing tables, and protocol statistics. The ping utility tests reachability, and traceroute maps the network path packets take.
Study on mobile
Get CertPunch for iOS or Android.