Summer Sale 60% Special Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: best60

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

Page: 1 / 8
Total 80 questions

Linux Essentials Certificate Exam - version 1.6 Questions and Answers

Testing Engine

  • Product Type: Testing Engine
$48  $119.99

PDF Study Guide

  • Product Type: PDF Study Guide
$42  $104.99
Question 1

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 2

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 3

What is defined by a Free Software license?

Options:

A.

Details of the technical documentation each contributor has to provide.

B.

The programming languages which may be used to extend the licensed program.

C.

A complete list of libraries required to compile the licensed software.

D.

Limits on the purposes for which the licensed software may be used.

E.

Conditions for modifying and distributing the licensed software.

Question 4

Which statements about the directory /etc/skel are correct? (Choose two.)

Options:

A.

The personal user settings of root are stored in this directory.

B.

The files from the directory are copied to the home directory of the new user when starting the system.

C.

The files from the directory are copied to the home directory of a new user when the account is created.

D.

The directory contains a default set of configuration files used by the useradd command.

E.

The directory contains the global settings for the Linux system.

Question 5

Which command copies the contents of the directory /etc/, including all sub-directories, to /root/?

Options:

A.

copy /etc /root

B.

cp -r /etc/* /root

C.

cp -v /etc/* /root

D.

rcp /etc/* /root

E.

cp -R /etc/*.* /root

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 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 8

A directory contains the following three files:

texts 1.txt

texts 2.txt

texts 3.csv

Which command copies the two files ending in.txtto the/tmp/directory?

Options:

A.

cp ??.txt /tmp/

B.

cp *.txt /tmp/

C.

cp. \.txt /tmp/

D.

cp ?.txt /tmp/

E.

cp $?.txt /tmp/

Question 9

Which of the following directories must be mounted with read and write access if it resides on its own dedicated file system?

Options:

A.

/opt

B.

/lib

C.

/etc

D.

/var

E.

/usr

Question 10

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 11

Why are web browser cookies considered dangerous?

Options:

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.

Question 12

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 13

Which command displays file names only and no additional information?

Options:

A.

ls -a

B.

ls -lh

C.

ls -l

D.

ls -alh

E.

ls -nl

Question 14

What parameter of ls prints a recursive listing of a directory's content? (Specify ONLY the option name without any values or parameters.)

Options:

Question 15

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

(docker), 1001 (libvirt)(wireshark),989

Options:

A.

/etc/id

B.

/etc/passwd

C.

/etc/group

D.

/home/index

E.

/var/db/users

Question 16

Which of the following is a protocol used for automatic IP address configuration?

Options:

A.

NFS

B.

LDAP

C.

SMTP

D.

DNS

E.

DHCP

Question 17

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 18

What is the UID of the user root?

Options:

A.

1

B.

-1

C.

255

D.

65536

E.

0

Question 19

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 20

What can be found in the /proc/ directory?

Options:

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.

Question 21

What happens to a file residing outside the home directory when the file owner's account is deleted? (Choose two.)

Options:

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.

Question 22

Where is the operating system of a Raspberry Pi stored?

Options:

A.

On the master device attached to the Raspberry Pi’s IDE bus.

B.

On a read only partition on the Raspberry Pi’s firmware, next to the BIOS.

C.

On a removable SD card which is put into the Raspberry Pi.

D.

On a Linux extension module connected to the Raspberry Pi’s GPIO pins.

E.

On rewritable flash storage which is built into the Raspberry Pi.

Question 23

What command displays manual pages? (Specify ONLY the command without any path or parameters.)

Options:

Question 24

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

Page: 1 / 8
Total 80 questions