New Year Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

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

Page: 2 / 3
Total 81 questions

Which of the following outputs could stem from the commandlast?

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)

Which of the following statements is true about Free Software?

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.

What information can be displayed bytop?

A.

Existing files, ordered by their size.

B.

Running processes, ordered by CPU or RAM consumption.

C.

User accounts, ordered by the number of logins.

D.

User groups, ordered by the number of members.

E.

User accounts, ordered by the number of files.

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

A.

1

B.

0

C.

-1

D.

-255

E.

255

What can be found in the /proc/ directory?

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.

When typing a long command line at the shell, whatsingle charactercan be used to split a command across multiple lines?

Which one of the following statements concerning Linux passwords is true?

A.

All passwords can be decrypted using the system administrator's master password.

B.

Passwords may never start with a non-letter.

C.

Users cannot change their password once it has been set.

D.

Passwords are only stored in hashed form.

E.

Passwords may be at most six characters long.

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

on a DNS server?

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.

Which of the following commands puts the lines of the file data.csv into alphabetical order?

A.

a..z data.csv

B.

sort data.csv

C.

abc data.csv

D.

wc -s data.csv

E.

grep --sort data.csv

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?

A.

!MYVAR=value

B.

env MYVAR=value

C.

MYVAR=value

D.

$MYVAR=value

E.

export MYVAR=value