LINUX ESSENTIALS LPI 010-160 UPDATED FINAL
EXAM ALL QUESTIONS AND ANSWERS SURE A+
✔✔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.)
- ✔✔D. ./test.sh
E. bash test.sh
✔✔Which of the following commands sorts the output of the command export-logs? -
✔✔D. export-logs | sort
✔✔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 - ✔✔E. a. txt
b. txt
, ✔✔Which of the following commands will search for the file foo.txt under the directory
/home? - ✔✔find /home -name foo.txt
✔✔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? - ✔✔The execute bit
should be set in the file's permissions.
✔✔What is a Linux distribution? - ✔✔A bundling of the Linux kernel, system utilities and
other software.
✔✔Which package management tool is used in Red Hat-based Linux Systems? -
✔✔RPM
✔✔Which of the following programs is a graphical editor for vector graphics? -
✔✔Inkscape
✔✔Where is the operating system of a Raspberry Pi stored? - ✔✔On a removable SD
card which is put into the Raspberry Pi.
✔✔What is defined by a Free Software license? - ✔✔Conditions for modifying and
distributing the licensed software.
✔✔Why are web browser cookies considered dangerous? - ✔✔Cookies support
identification and tracking of users
✔✔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)
E. Software as a Service (SaaS)
✔✔Which of the following characters in a shell prompt indicates the shell is running with
root privileges? - ✔✔#
✔✔Which of the following commands are used to get information on the proper use of
ls? (Choose two.) - ✔✔D. man ls
E. info ls
EXAM ALL QUESTIONS AND ANSWERS SURE A+
✔✔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.)
- ✔✔D. ./test.sh
E. bash test.sh
✔✔Which of the following commands sorts the output of the command export-logs? -
✔✔D. export-logs | sort
✔✔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 - ✔✔E. a. txt
b. txt
, ✔✔Which of the following commands will search for the file foo.txt under the directory
/home? - ✔✔find /home -name foo.txt
✔✔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? - ✔✔The execute bit
should be set in the file's permissions.
✔✔What is a Linux distribution? - ✔✔A bundling of the Linux kernel, system utilities and
other software.
✔✔Which package management tool is used in Red Hat-based Linux Systems? -
✔✔RPM
✔✔Which of the following programs is a graphical editor for vector graphics? -
✔✔Inkscape
✔✔Where is the operating system of a Raspberry Pi stored? - ✔✔On a removable SD
card which is put into the Raspberry Pi.
✔✔What is defined by a Free Software license? - ✔✔Conditions for modifying and
distributing the licensed software.
✔✔Why are web browser cookies considered dangerous? - ✔✔Cookies support
identification and tracking of users
✔✔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)
E. Software as a Service (SaaS)
✔✔Which of the following characters in a shell prompt indicates the shell is running with
root privileges? - ✔✔#
✔✔Which of the following commands are used to get information on the proper use of
ls? (Choose two.) - ✔✔D. man ls
E. info ls