Skip to content

LPI

LPI Linux Essentials

Exam 5 · 36 questions · Choose another exam

  1. Question 154 of 225In computer networks, what does DHCP stand for?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Dynamic Host Configuration Protocol

    The acronym DHCP stands for Dynamic Host Configuration Protocol, which dynamically assigns IP addresses to network devices. This automated assignment prevents administrators from having to manually configure network settings on every single machine.

  2. Question 155 of 225What key do you press to quit reading a man page?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Q

    Pressing the letter q quits the man page viewer because it runs inside the less pager. Remember this exam cue, as other keys like escape will not exit the interface.

  3. Question 156 of 225Which command searches manual page names and descriptions for a user-supplied keyword?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. apropos

    The apropos command searches manual page names and descriptions for a keyword. This is highly useful when you know the function you need but cannot recall the exact command name.

  4. Question 157 of 225Which of the following is TRUE about open source software?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. Open source software is a prominent example of open collaboration

    Open source software is developed in a collaborative public manner, serving as a prominent example of open collaboration. While often free of charge, the software is not always free, as vendors can still charge for support services or enterprise features.

  5. Question 158 of 225Which keyboard shortcut allows pasting a previously copied highlighted text while working in the command line terminal?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. CTRL + SHIFT + V

    Pressing Control Shift V pastes copied text into most graphical terminal emulators. Be careful with Control V, because the shell intercepts it as a literal control character insertion rather than handling the standard paste operation.

  6. Question 159 of 225Which command shows all of the directories that the shell searches for programs?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. echo $PATH

    The echo command combined with the PATH variable displays all the directories the shell searches for executable programs. The system checks these directories sequentially when you type a command without providing its full file path.

  7. Question 160 of 225Where does Linux store most of its log files in the directory tree?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. /var/log

    The system stores the vast majority of log files within the slash var slash log directory. This standard location centralizes logs from the kernel and various applications, making administration and troubleshooting much easier.

  8. Question 161 of 225Which type of IP addresses uses a dotted-decimal notation?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. IPv4

    IPv4 addresses use dotted decimal notation, such as one nine two dot one six eight dot one dot one. In contrast, IPv6 utilizes hexadecimal numbers separated by colons to accommodate its much larger address space.

  9. Question 162 of 225Which command is used to print the last 10 lines of a file to the display?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. tail

    The tail command prints the last few lines of a file, showing ten by default. The head command shows the beginning, while cat and less display the entire file.

  10. Question 163 of 225Which command is used to print one page of text to the screen at a time?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. less

    The less command acts as a pager, displaying output one screen at a time. Unlike cat, it allows scrolling backward and forward through large text files interactively.

  11. Question 164 of 225Which of the following characters in a shell prompt indicates the shell is running with root privileges?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. #

    The hash sign indicates the shell is operating with root privileges. The dollar sign denotes a standard unprivileged user, which is the primary visual cue tested.

  12. Question 165 of 225Which of the following is a Debian-based computer operating system for Raspberry Pi?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. Raspbian

    Raspbian is the Debian-based operating system highly optimized for the Raspberry Pi hardware. While Ubuntu is also Debian-based, it is a general-purpose distribution and not tailored specifically for Raspberry Pi.

  13. Question 166 of 225What command would you use to get comprehensive documentation about any command in Linux?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. man command

    The man command opens the system manual pages, providing comprehensive documentation for commands. While other commands like help exist, man is the standard utility tested for viewing full documentation.

  14. Question 167 of 225What command should be used to display the permissions for every file in the current directory?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. ls -la

    The ls command with the dash l and dash a flags displays permissions for all files. The dash a flag ensures hidden files are shown, while the dash l flag provides the detailed permission strings.

  15. Question 168 of 225Which software handles the installation and removal of software on Debian and Ubuntu?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. apt

    APT is the package manager used to install and remove software on Debian and Ubuntu systems. RPM and YUM are used by Red Hat based distributions, making them incorrect for Debian.

  16. Question 169 of 225What command would you use to create a symbolic link in Linux?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. ln -s

    The ln -s command creates a symbolic link, which acts as a shortcut pointing to the original file's path. Avoid the standard ln command without the dash s flag, because that creates a hard link rather than a soft link.

  17. Question 170 of 225Where are the passwords stored for users on a Linux system?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. /etc/shadow

    The /etc/shadow file stores the hashed passwords and password aging data for user accounts. The /etc/passwd file is a common distractor, but it is world-readable and only stores the placeholder character, not the actual password hash.

  18. Question 171 of 225Which UID is usually used to represent the root user on a Linux system?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. 0

    The root superuser account is always assigned the user ID of zero, granting complete administrative privileges. Normal user accounts typically start at one thousand or higher, while system processes use lower identifier numbers.

  19. Question 172 of 225How would you represent rwxr-xr-- in octal notation?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. 754

    The permissions rwxr-xr-- convert to the octal value 754 by adding the numeric values for each triad. Add four for read, two for write, and one for execute, mapping the sums sequentially to the owner, group, and others.

  20. Question 173 of 225Which of the following is the dmesg command used for?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. To show the kernel log messages

    The dmesg command reads and prints the kernel ring buffer, which contains hardware initialization and driver messages. Do not confuse this with syslog, which aggregates broader system and daemon messages from various background services.

  21. Question 174 of 225Which of the following software packages is a mail server?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Postfix

    Postfix is a mail transfer agent responsible for routing and delivering email over a network. Distractors like Thunderbird and Apache fail because they are an email client and a web server, respectively.

  22. Question 175 of 225Which of the following commands creates an archive file work.tar from the contents of the directory ./work/?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. tar -cf work.tar ./work/

    The -c option creates a new archive, while -f specifies the output file. Watch for the correct order, as tar requires the exact filename immediately following the -f flag.

  23. Question 176 of 225Which command will display the last line of the file document.txt?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. tail -n 1 document.txt

    The tail command displays the end of a file, and -n 1 specifies exactly one line. A bare tail defaults to ten lines, and last shows login history, not file text.

  24. Question 177 of 225Which of the following commands is used to extract files from a zip archive?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. unzip

    The unzip command extracts files from a ZIP archive by default. Remember that tar handles uncompressed or natively compressed tarballs, making it the wrong tool for ZIP files.

  25. Question 178 of 225Which of the following options is used with tar to display the tar command's progress during execution?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. -v

    The -v option enables verbose mode, listing files as they are processed. While -c and -f are required to create archives, they operate silently without -v.

  26. Question 179 of 225Which of the following is used to untar a tar archive file?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. tar -x

    The tar command combined with -x extracts contents from an archive. Avoid choosing untar, since it is not a standard Linux utility.

  27. Question 180 of 225Which of the following is an open-source relational database management system?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. MySQL

    MySQL is a widely used open-source relational database management system. The other options are generic distractor terms and do not represent actual database software on the Linux platform.

  28. Question 181 of 225What is a pre-integrated, self-contained system made by combining a software application (e.g., server software) with just enough operating system to run optimally on industry-standard hardware or a virtual machine?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Virtual appliance

    A virtual appliance is a pre-integrated virtual machine image with just enough operating system to run a specific application. A standard virtual server typically includes a full operating system rather than a minimal one.

  29. Question 182 of 225Which of the following can you NOT install Linux on?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. Smartcard

    Linux requires actual processing power and storage, making a basic smartcard an impossible target for installation. Remember that Linux is incredibly flexible, running on everything from desktop computers to cloud servers and mobile devices.

  30. Question 183 of 225What permissions would be represented by the octal 517?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. r-x--xrwx

    The octal value 517 translates to read and execute for the owner, execute for the group, and full permissions for others. Remember to map each digit to the owner, group, and others, calculating the read, write, and execute values.

  31. Question 184 of 225Which of the following information is provided in the default output of the who command?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: C. Username, Terminal Identifier, Login Date and Time

    The who command outputs the username, terminal line, and login date and time for currently active sessions. A common distractor includes sensitive data like passwords, but standard system utilities never display hashed passwords in plain text.

  32. Question 185 of 225Which of the following is used to redirect the standard output of a command to a file?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. 1>

    Standard output is file descriptor one, so 1> redirects it to a file. Option two handles standard error, which is a common distractor for testing redirection proficiency.

  33. Question 186 of 225Typing $ followed by pressing which key twice, in quick succession, will list all of the variables?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: D. TAB

    Pressing the tab key twice triggers shell completion, listing all variables after a dollar sign. This powerful shortcut dynamically reveals available system and user variables.

  34. Question 187 of 225To see all the variables that are in the user's environment, use the _______ command.

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. printenv

    The printenv command displays the values of environment variables. Remember that ping is a network utility, and processvar is a fabricated distractor term.

  35. Question 188 of 225In order to rename the directory ~/documents/letters to ~/documents/archive, which of the following commands should be used?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: A. mv ~/documents/letters ~/documents/archive

    The mv command is used to rename or move files and directories in Linux. The cp command would merely create a copy, leaving the original directory intact.

  36. Question 189 of 225Which information is used by a computer to connect to a typical local area network?

    Tap an answer — you get instant feedback and the reasoning.

    Show answer & explanation

    Correct answer: B. IP address

    An IP address is the fundamental information required for a computer to communicate on a typical local area network. Without a valid IP address, the device cannot properly route traffic or interact with other machines on that network.

Study on mobile

Get CertPunch for iOS or Android.

Website sessions are saved in this browser tab. They do not transfer to the apps.

Scroll to Top