Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free LPI Linux Essentials - Exam 010, (version 1.6) 010-160 Exam Questions

Last updated: · 11 practice questions with answers and explanations

Page: 1 / 9 Total 81 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: The Linux Community and a Career in Open Source

Skill tested: Selects a Linux distribution appropriate to a supported deployment lifecycle.

A small organization is replacing its office workstations and wants a Linux desktop distribution with a predictable maintenance cycle. Staff should receive routine security and stability updates, but the organization does not want to reinstall every few months to follow short-lived releases. The machines will use common desktop applications and do not require vendor-specific enterprise support. Which distribution choice best fits these requirements?

Correct Answer: B. Ubuntu LTS, using its long-term support release cycle
Explanation:

Ubuntu LTS releases are intended to provide a stable base with a longer maintenance period than interim releases, making them a reasonable fit when routine updates and reduced upgrade frequency matter. A beta release is not the appropriate choice for dependable production desktops. Rolling releases can be suitable in other environments, but their continuous package changes do not meet the stated preference for a predictable, conservative maintenance cycle. A server-only installation also fails the desktop requirement.

Question 2

New Single answer

Topic: The Linux Community and a Career in Open Source

Skill tested: Identifies suitable open-source server applications for web and file-sharing roles.

A community organization is consolidating several Linux servers. It needs to publish web pages, share files with Windows workstations, and store application records in a relational database. It prefers widely used open-source applications rather than building custom services. Which set of applications most directly matches these three roles, in order?

Correct Answer: D. Apache HTTPD, Samba, and MariaDB
Explanation:

Apache HTTPD serves web content, Samba provides file and printer sharing compatible with Windows networks, and MariaDB is a relational database server. NFS is primarily used for file sharing among Unix-like systems, while LibreOffice is a productivity suite. Thunderbird is an email client, not a web server, and Firefox is a browser rather than a file-sharing service. ownCloud provides file synchronization and sharing, but it does not replace the required relational database role in this set.

Question 3

New Multiple answers

Topic: Finding Your Way on a Linux System

Skill tested: Applies shell quoting and environment-variable rules to command-line arguments.

A technician is preparing a Bash command to create a directory beneath a path stored in the variable `BASE`, then print a message that includes the literal characters `$HOME`. The directory name is `weekly reports`, so it must remain a single argument. Which two command lines satisfy both requirements? Select TWO.

Correct Answer: A. `echo "Literal text: \$HOME"`; D. `mkdir "$BASE/weekly reports"`
Explanation:

Double quotes around `"$BASE/weekly reports"` allow the variable to expand while preserving the embedded space as part of one argument. In the double-quoted echo, the backslash prevents `$HOME` from expanding, so the output contains the literal variable notation. A leaves the space unquoted and splits the path into multiple arguments. C suppresses expansion of `BASE`, and E passes several separate words to `echo` with literal quotes around only `$HOME`.

Question 4

New Single answer

Topic: Finding Your Way on a Linux System

Skill tested: Uses manual-page sections to locate documentation for a command and related file format.

While investigating a backup script, an administrator finds a reference to `crontab` and is unsure whether it refers to the command used to manage scheduled jobs or the format of the configuration file. The system has local manual pages installed, and network access is unavailable. Which action is the most direct way to inspect the file-format documentation rather than the command documentation?

Correct Answer: A. Run `man 5 crontab`
Explanation:

Manual section 5 documents file formats and configuration files, so `man 5 crontab` specifically requests the crontab file-format page. `man -k` searches manual-page names and descriptions, which can help discover candidates but does not itself select a particular section. `info` may provide useful documentation when available, but it does not reliably distinguish the relevant manual section in this case. Searching `/usr/share/doc/` is less direct and may not locate the installed manual content.

Question 5

New Single answer

Topic: Finding Your Way on a Linux System

Skill tested: Distinguishes absolute paths, relative paths, and hidden files during directory navigation.

A user is in `/home/lee/projects` and needs to list the contents of the hidden `.config` directory in Lee's home directory without changing the current working directory. The listing must include hidden entries within `.config` as well. Which command meets the requirement?

Correct Answer: D. `ls -a /home/lee/.config`
Explanation:

`/home/lee/.config` is an absolute path to the requested directory, and `ls -a` includes entries whose names begin with a dot. The relative path `.config` in A refers to `/home/lee/projects/.config`, not Lee's home directory. C changes the working directory, contrary to the requirement, and its plain `ls` omits hidden entries. D uses the correct path but does not show hidden contents.

Question 6

New Multiple answers

Topic: The Power of the Command Line

Skill tested: Combines tar options and compression utilities to create and inspect compressed archives.

A release engineer must archive a directory named `site files` and compress the archive with gzip. The archive must be created in the current directory, preserve the directory structure, and be listable later without extracting files. Which TWO commands correctly create the compressed archive and list its contents? Select TWO.

Correct Answer: B. `tar -tzf site-files.tar.gz`; E. `tar -czf site-files.tar.gz "site files"`
Explanation:

In A, `-c` creates an archive, `-z` applies gzip compression, and `-f` names the archive file; quoting preserves the source directory name as one argument. In C, `-t` lists archive members, while `-z` and `-f` identify the compressed archive. B extracts files rather than listing them. `gzip` alone compresses individual files and does not create the required directory archive. E places `z` after the archive filename is taken as the argument to `-f`, so its options are not interpreted as intended.

Question 7

New Single answer

Topic: The Power of the Command Line

Skill tested: Builds a grep and pipe pipeline to count matching log lines.

A support team stores service messages in `service.log`. An analyst needs the number of lines containing the case-sensitive text `ERROR`; the matching lines must not be printed, and the source log must remain unchanged. Which command is the most direct solution?

Correct Answer: C. `grep ERROR service.log | wc -l`
Explanation:

`grep ERROR service.log` writes each matching line to standard output, and the pipe sends those lines to `wc -l`, which counts them. The command reads the source file without modifying it and does not display the matching lines. Although `grep -c` can count matches directly, redirecting its output back to the input file in B risks truncating the log before the command reads it. C counts all lines rather than matches, and D sorts matching lines instead of counting them.

Question 8

New Single answer

Topic: The Power of the Command Line

Skill tested: Creates an executable Bash script with a valid interpreter line and command sequence.

A technician repeats the same report-generation command each morning and wants to save it as `/home/ana/bin/report`. The file should run as a Bash script when invoked by its path, and Ana has permission to manage files in her own home directory. Which implementation is appropriate?

Correct Answer: D. Start the file with `#!/bin/bash`, add the command on a following line, and make the file executable with `chmod u+x /home/ana/bin/report`
Explanation:

The first line `#!/bin/bash` identifies Bash as the interpreter, and the command follows as script content. Adding the user's execute permission allows Ana to invoke the file directly, provided she supplies its path or its directory is available through `PATH`. B names `report` as the interpreter rather than Bash. C removes read permission instead of adding execute permission. D neither supplies an interpreter line nor ensures the command can be found from arbitrary directories.

Question 9

New Single answer

Topic: The Linux Operating System

Skill tested: Matches Linux storage devices and partitions to their device-file naming conventions.

A workstation administrator installs a second SATA hard disk. The first SATA disk is already represented by `/dev/sda`, and the new disk contains two partitions. The administrator is documenting likely device paths before mounting either partition. Which pair is the expected naming pattern for the new disk's first and second partitions?

Correct Answer: D. `/dev/sdb1` and `/dev/sdb2`
Explanation:

For disks using the `/dev/sd*` naming convention, the disk is represented by a lettered device such as `/dev/sdb`, and its partitions use numeric suffixes such as `/dev/sdb1` and `/dev/sdb2`. `/dev/sda1` and `/dev/sda2` would refer to partitions on the already identified first disk. `/dev/sdb` and `/dev/sdc` are whole-device names, not partitions of one disk. The `/dev/hd*` pattern is not the expected naming convention for this SATA device scenario.

Question 10

New Single answer

Topic: Where Data is Stored

Skill tested: Locates system-wide and per-user configuration in standard Linux filesystem locations.

A desktop support technician is troubleshooting an application for one employee. The application stores that employee's personal settings separately from the system-wide configuration used by all accounts. The technician must inspect both locations without changing them. Which pair of locations best matches the usual Linux convention?

Correct Answer: B. `/home/employee` for the employee's settings and `/etc` for system-wide configuration
Explanation:

A user's home directory holds that user's personal files and commonly per-user application settings, often in hidden files or directories. `/etc` is the conventional location for system-wide configuration. `/var` contains variable data such as logs and queues, while `/tmp` is for temporary files and is not a durable configuration location. `/usr/bin` contains executable programs rather than personal or general system configuration.

Question 11

New Multiple answers

Topic: Security and File Permissions

Skill tested: Creates a local user account and assigns an existing supplementary group.

A Linux administrator has created the group `auditors` and must add a new local account named `mira`. The account should receive a home directory populated from the system's skeleton files, and `auditors` must be an additional group rather than the account's only group. The administrator will set Mira's password separately. Which TWO commands meet these requirements? Select TWO.

Correct Answer: C. `passwd mira`; D. `useradd -m -G auditors mira`
Explanation:

`useradd -m -G auditors mira` creates the account and home directory, using the system's default skeleton files, and adds `auditors` as a supplementary group. `passwd mira` sets the account password as specified. Using `-g` in E would assign `auditors` as the primary group, not as an additional group; D also suppresses home-directory creation with `-M`. `groupadd mira` creates a group rather than the requested user.