Number: 010-160 Passing Score: 800 Time Limit: 120 min File Version: 1
010-160
010-160
Exam A QUESTION 1
What are the differences between hard disk drives and solid state disks? (Choose two.)
A. Hard disks have a motor and moving parts, solid state disks do not.
B. Hard disks can fail due to physical damage, while solid state disks cannot fail. C. Solid state disks can store many times as much data as hard disk drives.
D. /dev/sda is a hard disk device while /dev/ssda is a solid state disk.
E. Solid state disks provide faster access to stored data than hard disks.
Correct Answer: AE Section: (none) Explanation
Explanation/Reference:
QUESTION 2
Reverse DNS assigns hostnames to IP addresses. How is the name of the IP address 198.51.100.165 stored on a DNS server?
A. In the A record for 165.100.51.198.ipv4.arpa.
B. In the PTR record for 165.100.51.198.in-addr.arpa. C. In the RNAME record for 198-51-100-165.rev.arpa. D. In the ARPA record for 165.100.51.198.rev.
E. In the REV record for arpa.in-addr.198.51.100.165.
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
QUESTION 3
What information can be displayed by top?
A. Existing files, ordered by their size.
B. Running processes, ordered by CPU or RAM consumption. C. User accounts, ordered by the number of logins.
D. User groups, ordered by the number of members.
E. User accounts, ordered by the number of files.
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
QUESTION 4
Which of the following commands can be used to resolve a DNS name to an IP address?
A. dnsname B. dns
C. query D. host
E. iplookup
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
QUESTION 5
Which of the following outputs comes from the command free? A.
B.
C.
D. E.
Correct Answer: E Section: (none) Explanation
Explanation/Reference:
QUESTION 6
What is the UID of the user root?
A. 1
B. -1
C. 255 D. 65536
E.0
Correct Answer: E Section: (none) Explanation
Explanation/Reference:
QUESTION 7
What is true about the owner of a file?
A. Each file is owned by exactly one user and one group.
B. The owner of a file always has full permissions when accessing the file. C. The user owning a file must be a member of the file’s group.
D. When a user is deleted, all files owned by the user disappear.
E. The owner of a file cannot be changed once it is assigned to an owner.
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
QUESTION 8
What information is stored in /etc/passwd? (Choose three.)
A. The user’s storage space limit B. The numerical user ID
C. The username
D. The encrypted password
E. The user\s default shell
Correct Answer: BCE Section: (none) Explanation
Explanation/Reference:
QUESTION 9
Which of the following tar options handle compression? (Choose two.)
A. -bz B. -z C. -g D. -j E. -z2
Correct Answer: BD Section: (none) Explanation
Explanation/Reference:
QUESTION 10
Which of the following keys can be pressed to exit less?
A. l B. x C. e D. q E. !
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
QUESTION 11
Which of the following commands sorts the output of the command export-logs?
A. export-logs < sort B. export-logs > sort C. export-logs & sort D. export-logs | sort E. export-logs <> sort
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
QUESTION 12
A directory contains the following files:
What would be the output of the following shell script? for file in *.txt
A. *.txt
B. a b
C. c.cav
D. a.txt
E. a. txt b. txt
Correct Answer: E Section: (none) Explanation
Explanation/Reference:
QUESTION 13
Which of the following commands will search for the file foo.txt under the directory /home?
A. search /home –file foo.txt B. search /home foo. txt
C. find /home – file foo.txt D. find /home –name foo.txt
E. find /home foo.txt
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
QUESTION 14
The current directory contains the following file:
-rw-r—r— 1 root exec 24551 Apr 2 12:36 test.sh
The file contains a valid shell script, but executing this file using ./test.sh leads to this error: bash: ./test.sh: Permission denied
What should be done in order to successfully execute the script?
A. The file’s extension should be changed from .sh to .bin.
B. The execute bit should be set in the file’s permissions.
C. The user executing the script should be added to the exec group.
D. The SetUID bit should be set in the file’s permissions
E. The script should be run using #!./test. sh instead of ./test.sh.
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
QUESTION 15
What is a Linux distribution?
A. The Linux file system as seen from the root account after mounting all file systems. B. A bundling of the Linux kernel, system utilities and other software.
C. The set of rules which governs the distribution of Linux kernel source code.
D. An operating system based on Linux but incompatible to the regular Linux kernel.
E. A set of changes to Linux which enable Linux to run on another processor architecture.
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
QUESTION 16
Which package management tool is used in Red Hat-based Linux Systems?
A. portage B. rpm
C. apt-get D. dpkg
E. packagectl
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
QUESTION 17
Why are web browser cookies considered dangerous?
A. Cookies support identification and tracking of users.
B. Cookies are always public and accessible to anyone on the internet.
C. Cookies consume significant amounts of storage and can exhaust disk space. D. Cookies store critical data which is lost when a cookie is deleted.
E. Cookies can contain and execute viruses and malware.
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
QUESTION 18
Which of the following are typical services offered by public cloud providers? (Choose three.)
A. Platform as a Service(PaaS)
B. Infrastructure as a Service(IaaS) C. Internet as a Service(IaaS)
D. Graphics as a Service (GaaS) E. Software as a Service (SaaS)
Correct Answer: ABE Section: (none) Explanation
Explanation/Reference:
QUESTION 19
Which of the following characters in a shell prompt indicates the shell is running with root privileges?
A. ! B.# C.* D.& E.$
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
QUESTION 20
What is true about a recursive directory listing?
A. It includes the content of sub-directories.
B. It includes the permissions of the directory listed.
C. It includes details of file system internals, such as inodes. D. It includes ownership information for the files.
E. It includes a preview of content for each file in the directory.
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
QUESTION 21
Which of the following directories contains information, documentation and example configuration files for installed software packages?
A. /usr/share/doc/ B. /etc/defaults/
C. /var/info/
D. /doc/
E. /usr/examples/
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
QUESTION 22
Which of the following commands adds the directory /new/dir/ to the PATH environment variable?
A. $PATH=/new/dir: $PATH
B. PATH=/new/dir: PATH
C. export PATH=/new/dir: PATH D. export $PATH=/new/dir: $PATH E. export PATH=/new/dir: $PATH
Correct Answer: E Section: (none) Explanation
Explanation/Reference:
QUESTION 23
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?
A. /home/user/Documents/
B. /home/user/Documents/Downloads/ C. /home/user/Downloads/Documents/ D. /Documents/
E. /home/Documents
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
QUESTION 24
Which of the following is a protocol used for automatic IP address configuration?
A. NFS B. LDAP C. SMTP D. DNS E. DHCP
Correct Answer: E Section: (none) Explanation
Explanation/Reference:
QUESTION 25
Which of the following devices represents a hard disk partition?
A. /dev/ttyS0 B. /dev/sata0 C. /dev/part0 D. /dev/sda2 E. /dev/sda/p2
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
QUESTION 26
What can be found in the /proc/ directory?
A. One directory per installed program. B. One device file per hardware device. C. One file per existing user account. D. One directory per running process. E. One log file per running service.
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
QUESTION 27
A new server needs to be installed to host services for a period of several years. Throughout this time, the server should receive important security updates from its Linux distribution.
Which of the following Linux distributions meet these requirements? (Choose two.) A. Ubuntu Linux LTS
B. Fedora Linux
C. Debian GNU/Linux Unstable D. Ubuntu Linux non-LTS
E. Red Hat Enterprise Linux
Correct Answer: AE Section: (none) Explanation
Explanation/Reference:
QUESTION 28
Which of the following directories must be mounted with read and write access if it resides on its own dedicated file system?
A. /opt B. /lib C. /etc D. /var E. /usr
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
QUESTION 29
The ownership of the file doku.odt should be changed. The new owner is named tux. Which command accomplishes this change?
A. chmod u=tux doku.odt B. newuser doku.odt tux C. chown tux doku.odt
D. transfer tux: doku.odt E. passwd doku.odt:tux
Correct Answer: C Section: (none)
Explanation Explanation/Reference:
QUESTION 30
What happens to a file residing outside the home directory when the file owner's account is deleted? (Choose two.)
A. During a file system check, the file is moved to /lost +found.
B. The file is removed from the file system.
C. The UID of the former owner is shown when listing the file's details. D. The user root is set as the new owner of the file.
E. Ownership and permissions of the file remain unchanged.
Correct Answer: CE Section: (none) Explanation
Explanation/Reference:
QUESTION 31
What is true about links in a Linux file system?
A. A symbolic link can only point to a file and not to a directory.
B. A hard link can only point to a directory and never to a file.
C. When the target of the symbolic link is moved, the link is automatically updated. D. A symbolic link can point to a file on another file system.
E. Only the root user can create hard links.
Correct Answer: D Section: (none) Explanation
Explanation/Reference:
QUESTION 32
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)
A. /etc/id
B. /etc/passwd C. /etc/group
D. /home/index E. /var/db/users
Correct Answer: BC Section: (none) Explanation
Explanation/Reference:
QUESTION 33
Which of the following tasks can the command passwd accomplish? (Choose two.)
A. Change a user's username. B. Change a user's password. C. Create a new user account. D. Create a new user group. E. Lock a user account.
Correct Answer: CE Section: (none) Explanation
Explanation/Reference:
QUESTION 34
Which command displays file names only and no additional information?
A. ls -a B. ls -lh C. ls -l D. ls -alh E. ls -nl
Correct Answer: A Section: (none) Explanation
Explanation/Reference:
QUESTION 35
Which of the following commands puts the lines of the file data.csv into alphabetical order?
A. a..z data.csv
B. sort data.csv
C. abc data.csv
D. wc -s data.csv
E. grep --sort data.csv
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
QUESTION 36
Which of the following examples shows the general structure of a for loop in a shell script?
A. for *.txt as file => echo $file
B. for *.txt ( echo $i )
C. for file in *.txt do
echo $i done
D. for ls *.txt exec {} \;
E. foreach @{file} { echo $i
}
Correct Answer: C Section: (none)
Explanation Explanation/Reference:
QUESTION 37
What is the return value of a shell script after successful execution?
A. 1 B.0
C. -1 D. -255 E. 255
Correct Answer: B Section: (none) Explanation
Explanation/Reference:
QUESTION 38
Which of the following statements are true regarding a typical shell script? (Choose two.)
A. It has the executable permission bit set.
B. It starts with the two character sequence #!.
C. It is located in /usr/local/scripts/.
D. It is located in /etc/bash/scripts/.
E. It is compiled into a binary file compatible with the current machine architecture.
Correct Answer: AE Section: (none) Explanation
Explanation/Reference:
QUESTION 39
Which of the following commands extracts the contents of the compressed archive file1.tar.gz?
A. tar -czf file1.tar.gz
B. ztar file1.tar.gz
C. tar -xzf file1.tar.gz
D. tar --extract file1.tar.gz E. detar file1.tar.gz
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
QUESTION 40
Which of the following commands finds all lines in the file operating-systems.txt which contain the term linux, regardless of the case?
A. igrep linux operating-systems.txt
B. less -i linux operating-systems.txt
C. grep -i linux operating-systems.txt
D. cut linux operating-systems.txt
E. cut [Ll] [Ii] [Nn] [Uu] [Xx] operating-systems.txt
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
QUESTION 41
Which of the following programs are web servers? (Choose two.)
A. Apache HTTPD B. Postfix
C. Curl
D. Dovecot
E. NGINX
Correct Answer: AE Section: (none) Explanation
Explanation/Reference:
QUESTION 42
Which of the following Linux Distributions is derived from Red Hat Enterprise Linux?
A. Raspbian B. openSUSE C. Debian
D. Ubuntu
E. CentOS
Correct Answer: E Section: (none) Explanation
Explanation/Reference:
QUESTION 43
What are the differences between a private web browser window and a regular web browser window? (Choose three.)
A. Private web browser B. Private web browser C. Private web browser D. Private web browser E. Private web browser
windows do not allow printing or storing websites. windows do not store cookies persistently.
windows do not support logins into websites. windows do not keep records in the browser history. windows do not send regular stored cookies.
Correct Answer: BDE Section: (none) Explanation
Explanation/Reference:
QUESTION 44
What is the preferred source for the installation of new applications in a Linux based operating system?
A. The vendor's version management system B. A CD-ROM disk
C. The distribution's package repository
D. The vendor's website
E. A retail store
Correct Answer: C Section: (none) Explanation
Explanation/Reference:
Linux Essentials Certificate Exam LPI Questions + Answers
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am