Linux Essentials LPI 010-160 Questions
and 100% Correct Answers. Newest
2026-2027 Rated A
A directory contains the following files:
a.txt
b.txt
c.cav
What would be the output of the following shell script?
for file in *.txt
do
echo $file
done - AnsE. a. txt
b. txt
A directory contains the following three files:
texts 1.txt
texts 2.txt
texts 3.csv
Which command copies the two files ending in .txt to the /tmp/ directory? -
Anscp *.txt /tmp/
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.
1
,Which of the following Linux distributions meet these requirements?
(Choose two.) - AnsA. Ubuntu Linux LTS
E. Red Hat Enterprise Linux
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? -
Ans/Documents/
How is a new Linux computing instance provisioned in an laaS cloud? -
AnsA provider-specific configuration file describing the desired installation
is uploaded to the cloud provider.
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? - AnsD. CentOS
Most commands on Linux can display information on their usage. How can
this information typically be
displayed? - AnsBy running the command with the option -m or --manpage.
Reverse DNS assigns hostnames to IP addresses. How is the name of the
IP address 198.51.100.165 stored
2
, on a DNS server? - AnsB. In the PTR record for 165.100.51.198.in-
addr.arpa.
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.) - AnsB. rmdir Downloads
E. rm -r Downloads
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? - AnsThe
execute bit should be set in the file's permissions.
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.) - AnsD. ./test.sh
E. bash test.sh
The file script.sh in the current directory contains the following content:
#!/bin/bash
3
and 100% Correct Answers. Newest
2026-2027 Rated A
A directory contains the following files:
a.txt
b.txt
c.cav
What would be the output of the following shell script?
for file in *.txt
do
echo $file
done - AnsE. a. txt
b. txt
A directory contains the following three files:
texts 1.txt
texts 2.txt
texts 3.csv
Which command copies the two files ending in .txt to the /tmp/ directory? -
Anscp *.txt /tmp/
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.
1
,Which of the following Linux distributions meet these requirements?
(Choose two.) - AnsA. Ubuntu Linux LTS
E. Red Hat Enterprise Linux
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? -
Ans/Documents/
How is a new Linux computing instance provisioned in an laaS cloud? -
AnsA provider-specific configuration file describing the desired installation
is uploaded to the cloud provider.
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? - AnsD. CentOS
Most commands on Linux can display information on their usage. How can
this information typically be
displayed? - AnsBy running the command with the option -m or --manpage.
Reverse DNS assigns hostnames to IP addresses. How is the name of the
IP address 198.51.100.165 stored
2
, on a DNS server? - AnsB. In the PTR record for 165.100.51.198.in-
addr.arpa.
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.) - AnsB. rmdir Downloads
E. rm -r Downloads
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? - AnsThe
execute bit should be set in the file's permissions.
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.) - AnsD. ./test.sh
E. bash test.sh
The file script.sh in the current directory contains the following content:
#!/bin/bash
3