Download LPI Linux Essentials 010-160 Questions and more Exams Computer Science in PDF only on Docsity!
1 /
LPI Linux Essentials 010-160 Questions
1. Which of the following directories must be mounted with read and write access if it resides on its own
dedicated file system?: /var
2. Which of the following tasks can the command passwd accomplish? (Choose two.): Change a user's password.
Lock a user account.
3. What is the preferred source for the installation of new applications in a Linux based operating system?: The
distribution's package repository
4. What information is stored in /etc/passwd? (Choose three correct answers.)-
: The numerical user ID the username the user's default shell
5. What can be found in the /proc/ directory?: One directory per running process
6. What are the differences between hard disk drives and solid state disks? (Choose two.): Solid state disks provide
faster access to stored data than hard disks. Hard disks have a motor and moving parts, solid state disks do not.
7. Members of a team already have experience using Red Hat Enterprise Linux. For a small hobby project, the
team wants to set up a Linux server without paying for a subscription. Which of the following Linux distributions allows the team members to apply as much of their Red Hat Enterprise Linux knowledge as possible?: CentOS
8. Which of the following examples shows the general structure of a for loop in a shell script?: for file in *.txt do
echo $i done
9. Which of the following commands sets the variable USERNAME to the value bob?: USERNAME=bob
2 /
10. Which permissions are set on a regular file once the permissions have been modified with the command
chmod 654 file.txt?: -rw-r-xr--
11. What command displays manual pages? (originally a FILL BLANK question)-
: man
12. What is true about links in a Linux file system?: A symbolic link can point to a file on another file system.
13. Which of the following commands will search for the file foo.txt under the directory /home?: find /home -
name foo.txt
14. Which of the following commands creates an archive file work.tar from the contents of the directory
./work/?: tar -cf work.tar ./work/
15. Which of the following values could be a process ID on Linux?: 21398
16. Which of the following statements are true regarding a typical shell script? (Choose two.): It has the
executable permission bit set. It starts with the two character sequence #!.
17. Where is the operating system of a Raspberry Pi stored?: On a removable SD card which is put into the Raspberry Pi.
18. What is true about the dmesg command? (Choose two.): It displays the content of the Linux kernal's ring butter.
It might not display older information because it was overwritten by newer information.
19. Which of the following statements regarding Linux hardware drivers is correct?: Drivers are either
compiled into the Linux kernal or are loaded as kernal modules.
20. Which of the following commands puts the lines of the file data.csv into alphabetical order?: sort
data.csv
21. Which of the following commands shows the absolute path to the current working directory?: pwd
4 /
33. The current directory contains the following file: -rwxr-xr-x 1 root root 859688 Feb 7 08:15 test.sh
Given that the file is a valid shell script, how can this script be executed? (Choose two.): bash test.sh ./test.sh
34. Which of the following devices represents a hard disk partition?: /dev/sda
35. Most commands on Linux can display information on their usage. How can this information typically be
displayed?: By running the command with the option -h or --help.
36. What is the UID of the user root?: 0
37. Which of the following directories contains information, documentation and example configuration
files for installed software packages?: /usr/share/doc/
38. What are the differences between a private web browser window and a regular web browser window?
(Choose three.): Private web browser windows do not store cookies persistently. Private web browser windows do not keep records in the browser history. Private web browser windows do not send regular stored cookies.
39. Which statements about the directory /etc/skel are correct? (Choose two.)-
: The files from the directory are copied to the home directory of a new user when the account is created. The directory contains a default set of configuration files used by the user add command.
40. Which of the following programs are web servers? (Choose two.): Apache NGINX
41. Which of the following commands output the content of the file Texts 2.txt? (Choose two.): cat 'Texts 2.txt'
cat Texts\ 2.txt
42. What information is stored in /etc/passwd? (Choose three.): The user's default shell The username
The numerical user ID
5 /
43. Which of the following commands finds all lines in the file operating-sys-tems.txt which contain the
term linux, regardless of the case?: grep -i linux operat-ing-systems.txt
44. Which of the following statements is true about Free Software?: It may be modified by anyone using it.
45. Which of the following DNS record types hold an IP address? (Choose two.): AAAA
A
46. FILL BLANK When typing a long command line at the shell, what single character can be used
to split a command across multiple lines?: \
47. What is defined by a Free Software license?: Conditions for modifying and distributing the licensed software.
48. Which files are the source of the information in the following output? (Choose two.) uid=1000 (bob)
gid=1000 (bob) groups=1000 (bob), 10 (wheel), 150 (wireshark), 989 (docker), 1001 (libvirt): /etc/passwd /etc/group
49. Which one of the following statements concerning Linux passwords is true?: Passwords are only stored
in hashed form.
50. What is true about the owner of a file?: Each file is owned by exactly one user and one group.
51. Running the command rm Downloads leads to the following error: rm: cannot remove 'Downloads/':
Is a directory Which of the following commands can be used instead to remove Downloads, assuming Downloads is empty? (Choose two.): rm -r Downloads rmdir Downloads
52. What information can be displayed by top?: Running processes, ordered by CPU or RAM consumption.
53. What happens to a file residing outside the home directory when the file owner's account is deleted?
(Choose two.): The UID of the former owner is shown when listing the file's details. Ownership and permissions of the file remain unchanged.
7 / : rpm
65. What is true about the su command?: It runs a shell or command as another user.
66. What is a Linux distribution?: A bundling of the Linux kernel, system utilities and other software.
67. Which of the following commands sorts the output of the command ex-port-logs?: export-logs | sort
68. Which command displays file names only and no additional information?: ls
69. Which of the following are typical services offered by public cloud providers? (Choose
three.): Platform as a Service (PaaS) Infrastructure as a Service (IaaS) Software as a Service (SaaS)
70. The file script.sh in the current directory contains the following content:
#!/bin/bash echo $MYVAR The following commands are used to execute this script: MYVAR=value - ./script.sh The result is an empty line instead of the content of the variable MYVAR. How should MYVAR be set in order to make script.sh display the content of MYVAR?: export MYVAR=value
71. Which of the following outputs could stem from the command last?: root tty2 Wed May 17 21:11 - 21:11 (00:00)
72. Which of the following outputs comes from the command free?: total used free shared butt/cache available Mem: 15Gi
2.3Gi 9Gi 910Mi 3.0Gi 11Gi Swap: 2.0Gi 0B 2.0Gi
73. What keyword is used in a shell script to begin a loop? (Specify one keyword only, without any
additional information.): for
74. Which operator in a regular expression matches the preceding character either zero or one time?:?
75. Which of the following Linux Distributions is derived from Red Hat Enter-prise Linux?: CentOS
8 /
76. Which command copies the contents of the directory /etc/, including all sub-directories, to /root/?: cp
-r /etc/* /root
77. A user is currently in the directory /home/user/Downloads/ and runs the command ls ../Documents/
Assuming it exists, which directory's content is displayed?: /home/user/Documents/
78. A directory contains the following files: a.txt and b.txt, What would be the output of the following
shell script? for file in *.txt: a.txt b.txt
79. Which of the following keys can be pressed to exit less?: q
80. What is the purpose of the PATH environment variable?: It allows the execution of commands without the need to know the
location of the executable.
81. Which of the following characters in a shell prompt indicates the shell is running with root
privileges?: #