Black Friday Biggest Discount Flat 70% Offer - Ends in 0d 00h 00m 00s - Coupon code: 70diswrap

LPI 010-160 Dumps

Page: 1 / 8
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 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 3

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 4

What is the purpose of the PATH environment variable?

Options:

A.

It allows the execution of commands without the need to know the location of the executable.

B.

It increases security by preventing commands from running in certain locations.

C.

It specifies the location of a user's home directory.

D.

It indicates the location of the default shell to be used when a user logs in.

E.

It contains the absolute path to the current directory.

Question 5

What is the UID of the user root?

Options:

A.

1

B.

-1

C.

255

D.

65536

E.

0

Question 6

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

Options:

A.

Python

B.

NGINX

C.

Samba

D.

Inkscape

E.

MySQL

Question 7

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 8

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

Options:

A.

!

B.

#

C.

*

D.

&

E.

$

Question 9

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 10

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

Options:

Question 11

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 12

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 13

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 14

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 15

The ownership of the file doku.odt should be changed. The new owner is named tux. Which command accomplishes this change?

Options:

A.

chmod u=tux doku.odt

B.

newuser doku.odt tux

C.

chown tux doku.odt

D.

transfer tux: doku.odt

E.

passwd doku.odt:tux

Question 16

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 17

Which of the following tasks can the command passwd accomplish? (Choose two.)

Options:

A.

Change a user's username.

B.

Change a user's password.

C.

Create a new user account.

D.

Create a new user group.

E.

Lock a user account.

Question 18

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 19

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 20

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 21

Which of the following commands sets the variable USERNAME to the value bob?

Options:

A.

set USERNAME bob

B.

$USERNAME==bob

C.

var USERNAME=bob

D.

USERNAME<=bob

E.

USERNAME=bob

Question 22

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 23

How is a new Linux computing instance provisioned in an laaS cloud?

Options:

A.

The standard Linux installer has to be run through a remote console.

B.

After buying a Linux distribution, its vendor delivers it to a cloud instance.

C.

The installation has to be prepared in a local virtual machine which is then copied to the cloud.

D.

The cloud hosting organization provides a set of pre-prepared images of popular Linux distributions.

E.

A provider-specific configuration file describing the desired installation is uploaded to the cloud provider.

Question 24

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.

Page: 1 / 8
Total 80 questions