New Year Special Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

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

Question 1

Which of the following commands extracts the contents of the compressed archive file1.tar.gz?

Options:

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

Question 2

Which of the following commands adds the directory/new/dir/to thePATHenvironment variable?

Options:

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

Question 3

What is the UID of the user root?

Options:

A.

1

B.

-1

C.

255

D.

65536

E.

0

Question 4

Which operator in a regular expression matches the preceding character either zero or one time?

Options:

A.

?

B.

*

C.

+

D.

%

E.

$

Question 5

What is true about the su command?

Options:

A.

It is the default shell of the root account.

B.

It can only be used by the user root.

C.

It runs a shell or command as another user.

D.

It changes the name of the main administrator account.

E.

It locks the root account in specific time frames.

Question 6

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 7

Which of the following devices represents a hard disk partition?

Options:

A.

/dev/ttyS0

B.

/dev/sata0

C.

/dev/part0

D.

/dev/sda2

E.

/dev/sda/p2

Question 8

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

Options:

A.

run test.sh

B.

${test.sh}

C.

cmd ./test.sh

D.

./test.sh

E.

bash test.sh

Question 9

Which of the following statements regarding Linux hardware drivers is correct?

Options:

A.

Drivers are regular Linux programs which have to be run by the user who wants to use a device.

B.

Drivers are not used by Linux because the BIOS handles all access to hardware on behalf of Linux.

C.

Drivers are stored on their devices and are copied by the Linux kernel when a new device is attached

D.

Drivers are downloaded from the vendor's driver repository when a new device is attached.

E.

Drivers are either compiled into the Linux kernel or are loaded as kernel modules.

Question 10

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 11

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 12

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 13

Which of the following programs is a graphical editor for vector graphics?

Options:

A.

Python

B.

NGINX

C.

Samba

D.

Inkscape

E.

MySQL

Question 14

What are the differences between hard disk drives and solid state disks? (Choose two correct answers.)

Options:

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/sdais a hard disk device while/dev/ssdais a solid state disk.

E.

Solid state disks provide faster access to stored data than hard disks.

Question 15

Which of the following programs are web servers? (Choose two.)

Options:

A.

Apache HTTPD

B.

Postfix

C.

Curl

D.

Dovecot

E.

NGINX

Question 16

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 17

Which of the following statements is true about Free Software?

Options:

A.

It is developed by volunteers only.

B.

It may be modified by anyone using it.

C.

It must always be available free of charge.

D.

It only runs on Linux.

E.

It is only distributed as a compiled binary.

Question 18

Which command adds the new usertuxand creates the user’s home directory with default configuration

files?

Options:

A.

defaultuser tux

B.

useradd –m tux

C.

usercreate tux

D.

useradd –o default tux

E.

passwd –a tux

Question 19

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 20

What information is stored in/etc/passwd? (Choose three correct answers.)

Options:

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

Question 21

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 22

Which of the following characters in a shell prompt indicates the shell is running with root privileges?

Options:

A.

!

B.

#

C.

*

D.

&

E.

$

Question 23

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 24

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

Page: 1 / 8
Total 80 questions