Docsity

LPI Linux Essentials 010160 Ultimate Exam, Exams of Technology

Toggle sidebar
bg1
LPI Linux Essentials 010160 Ultimate Exam
**Question 1. Which person originally created the Linux kernel?**
A) Richard Stallman
B) Linus Torvalds
C) Dennis Ritchie
D) Brian Kernighan
Answer: B
Explanation: Linus Torvalds released the first version of the Linux kernel in 1991, initiating the Linux
operating system project.
**Question 2. Which of the following distributions is based on Debian?**
A) Fedora
B) CentOS
C) Ubuntu
D) openSUSE
Answer: C
Explanation: Ubuntu and its derivatives (e.g., Linux Mint) use the Debian package management system
(APT) and share Debian's base.
**Question 3. Which license is considered a copyleft license?**
A) BSD 2‑Clause
B MIT License
C Apache License 2.0
D GNU GPL v3
Answer: D
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b

Partial preview of the text

Download LPI Linux Essentials 010160 Ultimate Exam and more Exams Technology in PDF only on Docsity!

Question 1. Which person originally created the Linux kernel? A) Richard Stallman B) Linus Torvalds C) Dennis Ritchie D) Brian Kernighan Answer: B Explanation: Linus Torvalds released the first version of the Linux kernel in 1991, initiating the Linux operating system project. Question 2. Which of the following distributions is based on Debian? A) Fedora B) CentOS C) Ubuntu D) openSUSE Answer: C Explanation: Ubuntu and its derivatives (e.g., Linux Mint) use the Debian package management system (APT) and share Debian's base. Question 3. Which license is considered a copyleft license? A) BSD 2‑Clause B MIT License C Apache License 2. D GNU GPL v Answer: D

Explanation: The GPL requires derivative works to be distributed under the same license, which is the defining characteristic of copyleft. Question 4. What does the “/etc” directory primarily contain? A) User home directories B) System configuration files C) Kernel modules D) Temporary files Answer: B Explanation: “/etc” stores system-wide configuration files such as network settings, service configs, and user account data. Question 5. Which command displays the current working directory? A) ls B) pwd C) cd D) dir Answer: B Explanation: “pwd” prints the absolute path of the directory you are presently in. Question 6. In Bash, what does the variable $HOME represent? A) The root directory B) The current user’s home directory C) The system’s temporary directory

D) The parent directory Answer: B Explanation: “” matches any string of characters, including an empty string, when used in pathname expansion. Question 10. Which command compresses a file using the gzip algorithm? A) zip file.txt B) gzip file.txt C) bzip2 file.txt D) compress file.txt Answer: B Explanation: “gzip” replaces the original file with a .gz compressed version. Question 11. How would you extract the contents of a tar archive named “backup.tar.gz”? A) tar - cvf backup.tar.gz B) tar - xvf backup.tar.gz C) tar - tzf backup.tar.gz D) tar - xzf backup.tar.gz Answer: D Explanation: The “-xzf” options tell tar to extract (“-x”), uncompress gzip (“-z”), and be verbose (“-f” specifies the file). Question 12. Which command searches for the string “error” in all “.log” files in the current directory? A) find. - name ".log" - exec grep "error" {} ;

B) grep - r "error" *.log C) grep "error" *.log D) cat .log | grep "error" Answer: C Explanation: “grep” with a pattern and a list of files searches each file; “.log” expands to all log files. Question 13. Which of the following redirects the standard output of a command to a file, overwriting the file if it exists? A) > file.txt B) >> file.txt C) < file.txt D) | file.txt Answer: A Explanation: “>” creates or truncates the target file and writes the command’s stdout to it. Question 14. What does the pipe symbol “|” do in a shell command line? A) Sends output to a file B) Sends output as input to another command C) Runs a command in the background D) Terminates a command chain Answer: B Explanation: The pipe connects the stdout of the command on the left to the stdin of the command on the right.

Question 18. Where are most system log files stored on a typical Linux distribution? A) /var/log B) /etc/logs C) /usr/log D) /home/logs Answer: A Explanation: The “/var/log” directory contains logs such as syslog, auth.log, and kernel messages. Question 19. Which command displays the contents of the file “/proc/cpuinfo”? A) cat /proc/cpuinfo B) ls /proc/cpuinfo C) grep cpuinfo /proc D) view /proc/cpuinfo Answer: A Explanation: “cat” reads and prints the entire file; “/proc/cpuinfo” is a virtual file providing CPU details. Question 20. Which file stores user account information such as usernames and UID numbers? A) /etc/shadow B) /etc/passwd C) /etc/group D) /etc/login.defs Answer: B Explanation: “/etc/passwd” contains each user’s name, UID, GID, home directory, and default shell.

Question 21. Which command changes the ownership of “script.sh” to user “bob” and group “developers”? A) chown bob:developers script.sh B) chmod bob:developers script.sh C) chgrp bob:developers script.sh D) setowner bob developers script.sh Answer: A Explanation: “chown” with “user:group” syntax sets both owner and group. Question 22. What numeric mode corresponds to “rwxr‑‑r‑‑”? A) 744 B) 755 C) 664 D) 711 Answer: A Explanation: Owner (rwx) = 7, group (r‑‑) = 4, others (r‑‑) = 4 → 744. Question 23. Which special permission allows a program to run with the privileges of its owner? A) Sticky bit B) SGID C) SUID D) ACL Answer: C

D) /etc/dns.conf Answer: B Explanation: “/etc/resolv.conf” lists nameserver IP addresses used by the resolver library. Question 27. What is the purpose of the “/tmp” directory? A) Store permanent user data B) Hold system binaries C) Provide a space for temporary files D) Keep kernel modules Answer: C Explanation: “/tmp” is cleared on reboot (or periodically) and is intended for short‑lived temporary files. Question 28. Which command displays a paginated view of a file, allowing forward and backward navigation? A) cat file.txt B) head file.txt C) less file.txt D) tail file.txt Answer: C Explanation: “less” lets you scroll through a file interactively, unlike “cat” which prints everything at once. Question 29. Which of the following is a Red Hat‑based distribution? A) Ubuntu

B) Debian C) Fedora D) Arch Linux Answer: C Explanation: Fedora (and its downstream RHEL/CentOS) are built on the RPM package system and Red Hat heritage. Question 30. Which command would you use to view the manual page for the “grep” command? A) info grep B) man grep C) grep --help D) help grep Answer: B Explanation: “man grep” opens the manual (man) page for the grep utility. Question 31. Which license permits redistribution of modified code without requiring the source to be released under the same license? A) GPLv B) GPLv C) BSD 3‑Clause D) AGPL Answer: C Explanation: BSD licenses are permissive; they allow redistribution of binaries without imposing copyleft.

Question 35. Which command lists the currently loaded kernel modules? A) lsmod B) modprobe - l C) insmod --list D) uname - m Answer: A Explanation: “lsmod” reads /proc/modules and prints a table of loaded modules. Question 36. Which of the following best describes a virtual machine (VM)? A) A physical server that runs multiple OSes simultaneously B) An emulated computer system that runs its own OS isolated from the host C) A container that shares the host kernel D) A bootloader for Linux kernels Answer: B Explanation: A VM provides hardware virtualization, allowing an independent OS instance to run on top of a host. Question 37. Which command would you use to change the password for user “alice”? A) passwd alice B) chpasswd alice C) usermod - p alice D) setpw alice Answer: A

Explanation: “passwd” prompts for a new password and updates /etc/shadow for the specified user. Question 38. Which of these is a desktop application commonly found on Linux? A) Microsoft Office B) LibreOffice C) Adobe Photoshop D) Google Chrome (Windows version) Answer: B Explanation: LibreOffice is the open‑source office suite bundled with many Linux distributions. Question 39. What does the “-R” option do for the “chmod” command? A) Changes permissions recursively for all files and subdirectories B) Resets permissions to default C) Displays the current permissions before changing them D) Applies permissions only to regular files Answer: A Explanation: “-R” makes chmod act on the directory tree rooted at the specified path. Question 40. Which command can be used to display the routing table? A) ip route B) netstat - r C) route - n D) All of the above Answer: D

Answer: B Explanation: POSIX (Portable Operating System Interface) specifies APIs, shell behavior, and utilities for compatibility. Question 44. Which command installs a package on a Debian‑based system? A) yum install package B) dnf install package C) apt-get install package D) pacman - S package Answer: C Explanation: “apt-get” (or “apt”) is the package manager for Debian, Ubuntu, and derivatives. Question 45. What is the default shell for most Linux distributions? A) csh B) zsh C) bash D) fish Answer: C Explanation: Bash (Bourne Again SHell) is the standard interactive shell on most Linux installations. Question 46. Which command displays the amount of free and used memory in the system? A) df - h B) free - h C) lsblk

D) top - m Answer: B Explanation: “free - h” shows total, used, and free RAM and swap in human‑readable format. Question 47. Which file would you edit to permanently set a static IP address on a system using NetworkManager? A) /etc/network/interfaces B) /etc/NetworkManager/system-connections/… C) /etc/resolv.conf D) /etc/hosts Answer: B Explanation: NetworkManager stores connection profiles in “/etc/NetworkManager/system- connections/”. Question 48. What does the “ss” command replace from older Linux tools? A) ping B) netstat C) traceroute D) ifconfig Answer: B Explanation: “ss” (socket statistics) provides similar information to “netstat” but is faster and more feature‑rich. Question 49. Which of the following is a permissive open‑source license? A) GNU GPL v

Question 52. What does the command “chmod 600 file.txt” achieve? A) Owner can read/write; group and others have no access B) Owner can read/write/execute; others have no access C) Everyone can read and write D) Owner can read only; group can write only Answer: A Explanation: Numeric 6 = read+write for owner; 0 = no permissions for group and others. Question 53. Which command is used to display the contents of a compressed gzip file without extracting it? A) zcat file.gz B) cat file.gz C) gzip - d file.gz D) tar - tf file.gz Answer: A Explanation: “zcat” streams the decompressed contents to stdout. Question 54. Which of the following is a typical use of the “/etc/skel” directory? A) Store system binaries B) Provide default files for new user home directories C) Keep kernel configuration files D) Hold temporary files for root Answer: B Explanation: When a new user is created, files from “/etc/skel” are copied into the user’s home.

Question 55. Which command would you use to view active network connections and listening ports? A) netstat - tulnp B) ip link show C) ping - c 4 8.8.8. D) traceroute google.com Answer: A Explanation: “netstat - tulnp” lists TCP/UDP sockets, showing listening services and associated processes. Question 56. Which of the following is an example of a superuser‑only command? A) ls /home B) cat /etc/passwd C) apt-get update D) whoami Answer: C Explanation: Updating the package index modifies system files and requires root privileges. Question 57. Which command displays the current date and time? A) time B) date C) clock D) now Answer: B