Labour Day Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

LPI 010-160 Linux Essentials Certificate Exam - version 1.6 Exam Practice Test

Demo: 24 questions
Total 80 questions

Linux Essentials Certificate Exam - version 1.6 Questions and Answers

Question 1

Which of the following outputs could stem from the commandlast?

Options:

A.

1 ls

2 cat text.txt

3 logout

B.

Password for user last changed at Sat Mar 31 16:38:57 EST 2018

C.

Last login: Fri Mar 23 10:56:39 2018 from server.example.com

D.

EXT4-fs (dm-7): mounted filesystem with ordered data mode. Opts: (null)

E.

root tty2 Wed May 17 21:11 - 21:11 (00:00)

Question 2

Which package management tool is used in Red Hat-based Linux Systems?

Options:

A.

portage

B.

rpm

C.

apt-get

D.

dpkg

E.

packagectl

Question 3

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.)

Options:

A.

Ubuntu Linux LTS

B.

Fedora Linux

C.

Debian GNU/Linux Unstable

D.

Ubuntu Linux non-LTS

E.

Red Hat Enterprise Linux

Question 4

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.shleads to this error:

bash: ./test.sh: Permission denied

What should be done in order to successfully execute the script?

Options:

A.

The file’s extension should be changed from .shto.bin.

B.

The execute bit should be set in the file’s permissions.

C.

The user executing the script should be added to theexecgroup.

D.

The SetUID bit should be set in the file’s permissions

E.

The script should be run using#!./test. shinstead of./test.sh.

Question 5

Which of the following outputs comes from the commandfree?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Question 6

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?

Options:

A.

!MYVAR=value

B.

env MYVAR=value

C.

MYVAR=value

D.

$MYVAR=value

E.

export MYVAR=value

Question 7

Which of the following commands creates an archive filework.tarfrom the contents of the directory./

work/?

Options:

A.

tar --new work.tar ./work/

B.

tar –cf work.tar ./work/

C.

tar –create work.tgz –content ./work/

D.

tar work.tar < ./work/

E.

tar work > work.tar

Question 8

Which of the following examples shows the general structure of a for loop in a shell script?

Options:

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

}

Question 9

What is true about the owner of a file?

Options:

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.

Question 10

What are the differences between a private web browser window and a regular web browser window? (Choose three.)

Options:

A.

Private web browser windows do not allow printing or storing websites.

B.

Private web browser windows do not store cookies persistently.

C.

Private web browser windows do not support logins into websites.

D.

Private web browser windows do not keep records in the browser history.

E.

Private web browser windows do not send regular stored cookies.

Question 11

Which of the following DNS record types hold an IP address? (Choose two.)

Options:

A.

NS

B.

AAAA

C.

MX

D.

A

E.

CNAME

Question 12

Which of the following commands puts the lines of the file data.csv into alphabetical order?

Options:

A.

a..z data.csv

B.

sort data.csv

C.

abc data.csv

D.

wc -s data.csv

E.

grep --sort data.csv

Question 13

Which of the following commands creates the ZIP archive poems.zip containing all files in the current directory whose names end in .txt?

Options:

A.

zip *.txt > poems.zip

B.

zcat *.txt poems.zip

C.

zip poems.zip *.txt

D.

zip cfz poems.zip *.txt

E.

cat *.txt | zip poems.zip

Question 14

What is the preferred source for the installation of new applications in a Linux based operating system?

Options:

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

Question 15

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?

Options:

A.

Ubuntu Linux LTS

B.

Raspbian

C.

Debian GNU/Linux

D.

CentOS

E.

openSUSE

Question 16

What is a Linux distribution?

Options:

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.

Question 17

What is true about links in a Linux file system?

Options:

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.

Question 18

Which of the following directories contains information, documentation and example configuration files for

installed software packages?

Options:

A.

/usr/share/doc/

B.

/etc/defaults/

C.

/var/info/

D.

/doc/

E.

/usr/examples/

Question 19

Which of the following commands can be used to resolve a DNS name to an IP address?

Options:

A.

dnsname

B.

dns

C.

query

D.

host

E.

iplookup

Question 20

Which of the following values could be a process ID on Linux?

Options:

A.

/bin/bash

B.

60b503cd-019e-4300-a7be-922f074ef5ce

C.

/sys/pid/9a14

D.

fff3

E.

21398

Question 21

Which of the following types of bus can connect hard disk drives with the motherboard?

Options:

A.

The RAM bus

B.

The NUMA bus

C.

The CPU bus

D.

The SATA bus

E.

The Auto bus

Question 22

Which of the following commands finds all lines in the file operating-systems.txt which contain the term

linux, regardless of the case?

Options:

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

Question 23

A directory contains the following files:

What would be the output of the following shell script?

for file in *.txt

Options:

A.

*.txt

B.

a b

C.

c.cav

D.

A.txt

E.

A. txt

F.

txt

Question 24

What is the return value of a shell script after successful execution?

Options:

A.

1

B.

0

C.

-1

D.

-255

E.

255

Demo: 24 questions
Total 80 questions