Weekend Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: cramtreat

010-160 Linux Essentials Certificate Exam - version 1.6 Questions and Answers

Questions 4

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

Buy Now
Questions 5

Reverse DNS assigns hostnames to IP addresses. How is the name of the IP address 198.51.100.165 stored

on a DNS server?

Options:

A.

In the A record for165.100.51.198.ipv4.arpA.

B.

In the PTR record for165.100.51.198.in-addr.arpA.

C.

In the RNAME record for198-51-100-165.rev.arpA.

D.

In the ARPA record for165.100.51.198.rev.

E.

In the REV record forarpA.in-addr.198.51.100.165.

Buy Now
Questions 6

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.

Buy Now
Questions 7

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.

Buy Now
Questions 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

}

Buy Now
Questions 9

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

Buy Now
Questions 10

Running the commandrm Downloadsleads to the following error:

rm: cannot remove ‘Downloads/’: Is a directory

Which of the following commands can be used instead to removeDownloads, assumingDownloadsis

empty? (Choose two correct answers.)

Options:

A.

undir Downloads

B.

rmdir Downloads

C.

dir –r Downloads

D.

rem Downloads

E.

rm –r Downloads

Buy Now
Questions 11

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

Buy Now
Questions 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

Buy Now
Questions 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

Buy Now
Questions 14

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

Buy Now
Questions 15

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
Questions 16

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.

Buy Now
Questions 17

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.

Buy Now
Questions 18

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

Buy Now
Questions 19

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

Buy Now
Questions 20

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

Buy Now
Questions 21

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

Options:

A.

!

B.

#

C.

*

D.

&

E.

$

Buy Now
Questions 22

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.

Buy Now
Questions 23

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

Options:

A.

1

B.

0

C.

-1

D.

-255

E.

255

Buy Now
Questions 24

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

Buy Now
Exam Code: 010-160
Exam Name: Linux Essentials Certificate Exam - version 1.6
Last Update: May 17, 2024
Questions: 80
010-160 pdf

010-160 PDF

$28  $80
010-160 Engine

010-160 Testing Engine

$33.25  $95
010-160 PDF + Engine

010-160 PDF + Testing Engine

$45.5  $130