New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Free and Premium LPI 010-160 Dumps Questions Answers

Page: 1 / 6
Total 80 questions

Linux Essentials Certificate Exam - version 1.6 Questions and Answers

Question 1

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

Buy Now
Question 2

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 3

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 4

Which of the following commands output the content of the file Texts 2.txt? (Choose two.)

Options:

A.

cat 'Texts 2.txt’

B.

cat -- Texts 2.txt

C.

cat |Texts 2.txt|

D.

cat 'Texts\ 2.txt’

E.

cat Texts\ 2.txt

Question 5

Which of the following commands sorts the output of the commandexport-logs?

Options:

A.

export-logs < sort

B.

export-logs > sort

C.

export-logs & sort

D.

export-logs | sort

E.

export-logs <> sort

Question 6

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 7

What is true about a recursive directory listing?

Options:

A.

It includes the content of sub-directories.

B.

It includes the permissions of the directory listed.

C.

It includes details of file system internals, such as inodes.

D.

It includes ownership information for the files.

E.

It includes a preview of content for each file in the directory.

Question 8

Which of the following statements are true regarding a typical shell script? (Choose two.)

Options:

A.

It has the executable permission bit set.

B.

It starts with the two character sequence #!.

C.

It is located in /usr/local/scripts/.

D.

It is located in /etc/bash/scripts/.

E.

It is compiled into a binary file compatible with the current machine architecture.

Question 9

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 10

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 11

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 12

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 13

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 14

Which of the following commands shows the absolute path to the current working directory?

Options:

A.

who

B.

cd ..

C.

pwd

D.

ls -l

E.

cd ~/home

Question 15

What is the UID of the user root?

Options:

A.

1

B.

-1

C.

255

D.

65536

E.

0

Question 16

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 17

Which of the following commands will search for the filefoo.txtunder the directory/home?

Options:

A.

search /home –file foo.txt

B.

search /home foo. txt

C.

find /home – file foo.txt

D.

find /home –name foo.txt

E.

find /home foo.txt

Question 18

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 19

Most commands on Linux can display information on their usage. How can this information typically be displayed?

Options:

A.

By running the command with the option /? or /??.

B.

By running the command with the option ?! or ?=!.

C.

By running the command with the option /doc or /documentation.

D.

By running the command with the option -h or --help.

E.

By running the command with the option -m or --manpage.

Question 20

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 21

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 22

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 23

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 24

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.

Page: 1 / 6
Total 80 questions