


































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Welcome to the most comprehensive Linux Essentials question bank available. This set of 200 realistic exam questions covers every domain of the LPI Linux Essentials (010160) exam: • Linux evolution, distributions, and open source principles • Command-line basics (files, directories, redirection, pipes) • File permissions, ownership, and links • Processes, services, and system monitoring • Networking fundamentals (IP, ports, DNS) • Basic scripting (variables, loops, conditionals) • Hardware discovery and package management
Typology: Exams
1 / 42
This page cannot be seen from the preview
Don't miss anything!



































Welcome to the most comprehensive Linux Essentials question bank available. This set of 200 realistic exam questions _covers every domain of the LPI Linux Essentials (010-
1. Which of the following is a core principle of open source software? a) Source code must be sold for profit b) Users cannot modify the software c) The source code is freely available for modification d) Only corporations can use the software Rationale: Open source means the source code is available for anyone to view, modify, and distribute. Selling is allowed but not required; modification is a key freedom.
2. Who created the Linux kernel? a) Richard Stallman b) Linus Torvalds c) Dennis Ritchie d) Ken Thompson Rationale: Linus Torvalds launched the Linux kernel in 1991. Stallman founded the GNU project; Ritchie and Thompson created C and Unix. 3. Which distribution is known for being strictly free of proprietary components (as defined by the FSF)? a) Ubuntu b) Red Hat Enterprise Linux c) Debian (in its main branch, though not 100% of all repos – but among these, Debian maintains a strong free software commitment. Actually Trisquel or gNewSense are better, but Debian is the closest popular answer. For exam: Debian is correct? Let’s choose the best: Many exams say "Debian" because it requires non-free firmware to be enabled manually. However, the clearly correct one is Debian or Fedora? Fedora includes some firmware. For accuracy: Debian is the correct answer in most contexts.) d) Arch Linux Rationale: Debian’s Social Contract and its main repository contain only free software as per the Debian Free Software Guidelines. Proprietary firmware is in non-free. 4. Which command displays the current Linux kernel version? a) kernel-version b) uname - r c) version d) cat /proc/version Rationale: uname - r prints only the kernel release. cat /proc/version also works but uname - r is the standard. But the question asks for “command” – uname - r is most direct. However both are valid but the exam uses uname - r. We’ll use uname - r as correct. 5. The Linux kernel is written primarily in which programming language? a) C b) C++ c) Assembly d) Python
b) Zsh c) Fish d) Tcsh Rationale: Bash (Bourne Again SHell) is the default interactive shell on most Linux systems.
11. Which command provides a summary of available disk space usage for mounted filesystems? a) du b) df c) fdisk d) mount Rationale: df (disk free) reports total, used, and available disk space. du shows directory-level usage. 12. What is the purpose of the Linux /etc/passwd file? a) Store encrypted passwords b) Store user account information c) Store group memberships d) Store system logs Rationale: /etc/passwd contains user name, UID, GID, home directory, and shell. Encrypted passwords are now in /etc/shadow. 13. Which directory holds system-wide configuration files? a) /bin b) /home c) /etc d) /var Rationale: /etc is the standard location for system configuration files (e.g., /etc/fstab, /etc/passwd). 14. The command ls - l shows file permissions as - rwxr-x---. How many characters represent the owner’s permissions? a) 9 b) 3 c) 10 (first char is type, then 3 for owner, 3 for group, 3 for others – total 10. But the owner’s permissions are 3 characters after the type. The question: “how many characters represent the owner’s permissions?” – 3. Wait, careful: The string - rwxr-x--- has 10
characters total. The first character is file type, then next 3 = owner. So answer is 3. Let’s adjust.) Let’s correct: The owner permissions are the 3 characters after the file type. So answer =
Correct answer: 3 (but none of the options list 3? Need to provide options. Actually the question as written didn’t give options. I must provide a complete multiple-choice. Let me rewrite properly.)
14. The command ls - l shows permissions - rwxr-x---. How many characters in this string represent the file owner’s permissions? a) 1 b) 3 c) 4 d) 10 Rationale: The owner permissions are the three characters after the file type: rwx. 15. Which command changes the ownership of a file? a) chmod b) chown c) chgrp d) usermod Rationale: chown changes file user and/or group ownership. chmod changes permissions; chgrp changes group only. 16. What does the command man do? a) Display a manual page for a command b) Create a new user c) Manage system services d) Compile a C program Rationale: man (manual) provides documentation for commands, system calls, and configuration files. 17. Which of the following is a text-based web browser available on Linux? a) Firefox b) Lynx c) Chrome d) Opera
c) vmstat d) top Rationale: free displays RAM and swap usage. top also shows memory but free is specific to memory summary.
23. What is the purpose of a “live CD” Linux distribution? a) It requires installation to hard drive b) It runs entirely from removable media without installing c) It only works for rescue operations d) It cannot access the internet Rationale: Live CDs/DVDs/USBs boot a full Linux environment without touching the hard disk, useful for testing or recovery. 24. Which command terminates a process by its PID? a) killall b) kill c) stop d) term Rationale: kill sends a signal (default SIGTERM) to a process specified by PID. killall uses process name. 25. The cat command is primarily used to: a) Edit files b) Concatenate and display files c) Copy directories d) Change file timestamps Rationale: cat reads files sequentially and writes them to standard output. 26. Which command creates an empty file or updates a file’s timestamp? a) mkfile b) touch c) new d) create
Rationale: touch updates the access/modification timestamp; if the file does not exist, it creates a zero-byte file.
27. The symbol | (pipe) in Linux is used for: a) Background process b) Sending output of one command as input to another c) Logical OR condition d) Redirecting error output Rationale: The pipe connects stdout of left command to stdin of right command. 28. Which file stores the encrypted user passwords? a) /etc/passwd b) /etc/shadow c) /etc/secret d) /etc/login.defs Rationale: Modern Linux systems store password hashes in /etc/shadow, readable only by root. 29. What does the command ls - a do? a) List all files in long format b) List all files including hidden (dot) files c) List files sorted by access time d) List only directories Rationale: - a shows entries beginning with. (e.g., .bashrc). 30. Which permission number corresponds to rwxr-xr-x? a) 755 b) 644 c) 755 (owner rwx=7, group r-x=5, others r-x=5) d) 777 Rationale: rwx = 4+2+1 =7, r-x = 4+0+1=5 → 755. 31. What is the purpose of the pwd command? a) Set a new password b) Print the current working directory c) Show process working directory d) Clear the screen Rationale: pwd outputs the absolute path of the current directory.
b) User and group IDs of the current user c) Filesystem ID of / d) System uptime Rationale: id shows real/effective UID, GID, and supplementary groups.
38. Which command would you use to copy a directory and all its contents recursively? a) cp dir1 dir b) cp - r dir1 dir c) cp - a dir1 dir2 (also works but - r is standard. The exam uses cp - r) d) cp - v dir1 dir Rationale: - r or --recursive copies directories recursively. 39. The Linux root user (UID 0) has: a) Limited permissions b) Unrestricted access to the system c) No special privileges d) Only ability to change passwords Rationale: Root is the superuser with all privileges. 40. Which of the following is a valid hard link? a) A link to a file on another filesystem b) A second directory entry pointing to the same inode c) A shortcut that can cross filesystems d) A file containing the path to another file Rationale: Hard links are multiple names for the same inode within a single filesystem. 41. The kill - 9 command sends which signal? a) SIGTERM b) SIGKILL c) SIGHUP d) SIGINT Rationale: - 9 is SIGKILL, which forcibly terminates a process without cleanup. 42. What does the uptime command show? a) Time since last boot, load averages b) System version
c) Total memory usage d) Number of logged-in users only Rationale: uptime reports current time, how long system has been running, number of users, and 1/5/15 minute load averages.
43. Which command is used to securely copy files between Linux machines over SSH? a) ftp b) rcp c) scp d) cp Rationale: scp (secure copy) uses SSH for encrypted transfer. 44. The sudo command allows a user to: a) Become root without a password always b) Execute commands with elevated privileges (subject to configuration) c) Change file ownership d) Monitor system processes Rationale: sudo permits authorized users to run commands as root or another user, as defined in /etc/sudoers. 45. Which wildcard matches any string of characters, including none? a) ***** b)? c) # d) @ Rationale: * matches zero or more characters in globbing. 46. The /var directory typically holds: a) Temporary files b) Variable data like logs, spools, and caches c) User home directories d) Kernel modules Rationale: /var contains data that changes frequently (logs, mail spools, print queues). 47. Which command displays the first 10 lines of a file by default? a) tail b) head
51. Which command moves up one directory level? a) cd .. b) cd. c) cd / d) cd ~ Rationale: .. denotes parent directory; cd .. goes up one level. 52. The absolute path is defined as: a) A path relative to current directory b) A path starting from the root (/) directory c) A path using ~ expansion d) A path with no slashes Rationale: Absolute paths begin with / and specify the exact location from root. 53. Which of the following is a valid inode number range? a) 0– 255 b) 1 to filesystem maximum c) Only 1 d) 1– 1024 Rationale: Inode numbers are unique per filesystem, starting from 1 (often reserved for bad blocks or root directory). 54. The rmdir command deletes: a) Any file b) Empty directories only c) Directories with files (with prompt) d) Symbolic links Rationale: rmdir removes only empty directories. Use rm - r for non-empty. 55. Which command shows the disk usage of a directory and its subdirectories? a) df b) du c) fdisk d) ls - l Rationale: du (disk usage) estimates file space consumption. 56. What does the ln - s command create? a) Hard link
b) Symbolic (soft) link c) Device file d) Compressed archive Rationale: - s creates a symbolic link, which is a reference to another file by path.
57. In the output of ls - l, the first character ‘d’ indicates: a) Regular file b) Directory c) Symbolic link d) Block device Rationale: d stands for directory. 58. The cd command with no arguments takes you to: a) Root directory b) Your home directory c) Previous directory d) /tmp Rationale: cd alone defaults to $HOME. 59. Which command finds files owned by a specific user? a) grep - r user b) find / - user username c) locate user d) which user Rationale: find’s - user option filters by owner. 60. What does rm - f do? a) Remove a directory b) Force-remove files without prompting c) Remove only empty files d) Remove and backup Rationale: - f (force) ignores nonexistent files and never prompts. 61. The mv command can also be used to: a) Copy files b) Rename files or directories c) Change permissions d) Link files
Rationale: No permissions for any user, but root can still read/write/execute because root bypasses permissions.
67. What is the purpose of the lsblk command? a) List block device attributes (size, mountpoint, type) b) List kernel modules c) Show running processes d) Display system logs Rationale: lsblk lists information about block devices (disks, partitions). 68. The tree command: a) Shows directory structure in a tree-like format b) Kills a process tree c) Displays system uptime d) Mounts a filesystem Rationale: tree recursively lists directories as a visual tree. 69. Which special file represents the system’s primary hard drive’s first partition? a) /dev/hda b) /dev/sda c) Both a and b (legacy vs SCSI/SATA) – modern systems use /dev/sda1. The exam usually expects /dev/sda1. /dev/sda Rationale: SATA, USB, and SCSI drives use sdX; sda1 is first partition on first disk. 70. What does cd - do? a) Go to the previous working directory b) Go to root c) Go to home d) Stay in current directory Rationale: - expands to $OLDPWD, the previous directory.
71. Which command shows a dynamic real-time view of processes? a) ps b) top
c) jobs d) kill Rationale: top updates process information every few seconds.
72. To send a process to the background, you append: a)! b) & c) # d) @ Rationale: Appending & to a command runs it in the background, returning the shell prompt immediately. 73. The fg command brings: a) All background jobs to foreground b) A background job to the foreground c) Foreground job to background d) Stop a job Rationale: fg (foreground) resumes a stopped or background job in the foreground. 74. Which signal is sent by default when using kill without a number? a) SIGKILL (9) b) SIGTERM (15) c) SIGINT (2) d) SIGHUP (1) Rationale: kill sends SIGTERM (15), which allows the process to perform cleanup. 75. The nice command is used to: a) Change a process’s priority (niceness) b) View system uptime c) List nice processes d) Renice a running process Rationale: nice launches a command with a specified niceness (lower = higher priority). renice alters running processes. 76. Which command lists all background and stopped jobs in the current shell? a) ps b) jobs
Rationale: nohup makes a command ignore SIGHUP, so it persists after terminal closure.
82. Which file contains the list of currently running processes (pseudo-filesystem)? a) /proc b) /sys c) /dev d) /run Rationale: /proc is a virtual filesystem that provides process and kernel information. 83. The pstree command displays: a) Process tree rooted at PID 1 (systemd or init) b) Filesystem tree c) Directory tree d) Network tree Rationale: pstree shows parent-child relationships among processes. 84. Which priority value (nice) makes a process run with the highest possible priority? a) - 20 b) 0 c) 19 d) - 20 (lowest nice value = highest priority) Rationale: Nice values range from - 20 (most favorable scheduling) to 19 (least favorable). 85. To kill all processes with a given name, use: a) kill b) killall c) pkill (also valid but exam uses killall) d) terminate Rationale: killall kills processes by name; pkill is more flexible but killall is common.
86. Which command displays the IP address(es) of network interfaces? a) ifconfig b) ip addr c) Both are correct, but modern exams prefer ip addr Rationale: ifconfig is legacy; ip addr is part of iproute2 and is current. 87. The loopback interface IP address is: a) 0.0.0. b) 127.0.0. c) 192.168.0. d) 255.255.255. Rationale: 127.0.0.1 is the IPv4 loopback address, used for local communication. 88. Which command tests network connectivity to a host? a) route b) netstat c) ping d) traceroute Rationale: ping sends ICMP echo requests to a target host and measures response. 89. The netstat command can show: a) Network connections, routing tables, interface statistics b) Only listening ports c) Only TCP connections d) Process tree Rationale: netstat displays various network-related data; modern systems may use ss instead. 90. Which port is the default for SSH? a) 21 b) 22 c) 23 d) 80 Rationale: SSH uses TCP port 22. FTP =21, Telnet=23, HTTP=80. 91. The ss command is a replacement for: a) ifconfig b) netstat