Sample questions
LPI Linux Essentials (010-160, v1.6) (010-160) practice questions
What is the result of the command 'ls -la | grep "^d"'?
A hospital's IT department wants to adopt a Linux-based electronic records system. Legal counsel insists that the hospital be able to audit and modify the source code to meet patie…
The Linux Community And A Career IN Open SourcehardSee the answer and why each option is right or wrong →A junior administrator is asked to verify whether a newly installed application is truly open source. The application's documentation states that the source code is available but f…
The Linux Community And A Career IN Open SourcehardSee the answer and why each option is right or wrong →A security audit requires reviewing which local accounts exist on a Linux server, which of them have usable login shells, and which groups each account belongs to. Which TWO comman…
You need to append the output of a command to an existing file without overwriting it. Which operator should you use?
A Linux administrator is reviewing how environment variables affect command execution. Which TWO of the following statements about environment variables are correct? (Choose two.)
A user wants to find all files under /var/log that have been modified within the last 24 hours and are larger than 1 MB, then save the list to /tmp/recent_large.txt. Which command…
While troubleshooting a script, you run `grep -n 'error' /var/log/app.log` and see output lines prefixed with numbers. A colleague asks what those numbers represent. What do they i…
A nonprofit is drafting a policy that explains how its staff may legally use and redistribute open source software. The draft must correctly reflect the freedoms that free and open…
The Linux Community And A Career IN Open SourcemediumSee the answer and why each option is right or wrong →You want to execute two commands sequentially, but only if the first command succeeds. Which operator is used?
A support technician must read a very large log file, /var/log/messages, and only wants the portion that begins with the line containing the timestamp 'Mar 14 09:15' and continues…
A Linux system administrator notices that the /var/log directory is filling up quickly. They want to find the largest files within that directory tree to identify what is consuming…
Which of the following commands is used to create an empty file or update the timestamp of an existing file?
Why do many enterprise Linux distributions choose to delay the inclusion of the absolute latest kernel version?
The Linux Community And A Career IN Open SourcehardSee the answer and why each option is right or wrong →Which TWO of the following tools allow you to manage disk partitions?
You are configuring a temporary directory where multiple users save files. To ensure that users can only delete their own files and not files created by others, what must you set?
A junior administrator needs to let a colleague in the accounting group read and write the shared report at /srv/reports/q3.csv, but no one outside that group should have any acces…
A systems administrator is evaluating career paths within the Linux and open source ecosystem. The administrator is interested in roles that combine system operations with software…
The Linux Community And A Career IN Open SourcemediumSee the answer and why each option is right or wrong →You need to change the ownership of a file to user 'admin'. Which command is the correct way to do this?
You want to change the primary group of an existing user named 'bob' to 'staff'. Which command should you use?
A Linux administrator needs to grant a contractor temporary read and write access to a project directory without adding the contractor's account to a shared group or changing owner…
A new administrator wants to see the manual page for the `cp` command to check its options. Which command should they run?
A Linux administrator is working in a directory with many files and wants to identify files by their type and permissions without opening them. Which TWO commands can provide this…
A developer is looking for a career that involves 'DevOps' in a Linux environment. Which skill set is most relevant for this role?
The Linux Community And A Career IN Open SourcemediumSee the answer and why each option is right or wrong →