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

LPI 102-500 LPIC-1 Exam 102, Part 2 of 2, version 5.0 Exam Practice Test

Demo: 70 questions
Total 235 questions

LPIC-1 Exam 102, Part 2 of 2, version 5.0 Questions and Answers

Question 1

What output will the command seq 10 produce?

Options:

A.

A continuous stream of numbers increasing in increments of 10 until stopped.

B.

The numbers 1 through 10 with one number per line.

C.

The numbers 0 through 9 with one number per line.

D.

The number 10 to standard output.

Question 2

How can the existing environment variable FOOBAR be suppressed for the execution of the script./myscript only?

Options:

A.

unset -v FOOBAR;./myscript

B.

set -a FOOBAR="";./myscript

C.

env -u FOOBAR./myscript

D.

env -i FOOBAR./myscript

Question 3

Which of the following is the best way to list all defined shell variables?

Options:

A.

env

B.

set

C.

env -a

D.

echo $ENV

Question 4

Which of the following words is used to restrict the records that are returned from a SELECT query based on a supplied criteria for the values in the records?

Options:

A.

LIMIT

B.

FROM

C.

WHERE

D.

IF

Question 5

Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)

Options:

A.

The user issuing the command must be in the group script.

B.

The script file must be found in the $PATH.

C.

The script file must have the executable permission bit set.

D.

The script must begin with a shebang-line (#!) that points to the correct interpreter.

E.

The file system on which the script resides must be mounted with the option scripts.

Question 6

Which directory in /etc is used to keep a sample copy of files and directories for when a new user has a home directory created? (Please provide the full path)

Options:

Question 7

Which of the following commands puts the output of the command date into the shell variable mydate?

Options:

A.

mydate="$(date)"

B.

mydate="exec date"

C.

mydate="$((date))"

D.

mydate="date"

E.

mydate="${date}"

Question 8

After issuing:

function myfunction { echo $1 $2 ; }

in Bash, which output does:

myfunction A B C

Produce?

Options:

A.

A B

B.

A B C

C.

A C

D.

B C

E.

C B A

Question 9

Which of the following SQL statements will select the fields name and address from the contacts table?

Options:

A.

SELECT (name, address) FROM contacts;

B.

SELECT (name address) FROM contacts;

C.

SELECT name, address FROM contacts;

D.

SELECT name address FROM contacts;

Question 10

Which of the following commands lists all defined variables and functions within Bash?

Options:

A.

env

B.

set

C.

env -a

D.

echo $ENV

Question 11

Which of the following words is used to restrict the records that are returned from a SELECT SQL query based on a supplied criteria for the values in the records?

Options:

A.

CASE

B.

FROM

C.

WHERE

D.

IF

Question 12

By default, the contents of which directory will be copied to a new user's home directory when the account is created by passing the -m option to the useradd command? (Specify the full path to the directory.)

Options:

Question 13

Which of the following can the chage command NOT change?

Options:

A.

The number of days since January 1, 1970 after which the user's account will no longer be accessible.

B.

The number of days since January 1, 1970 after which the password can change.

C.

The number of days since January 1, 1970 since the password was last changed.

D.

The maximum number of days during which a password is valid.

E.

The number of days of inactivity after a password has expired before the account is locked.

Question 14

Which file specifies the user accounts that can NOT submit jobs via at or batch? (Provide the full path and filename)

Options:

Question 15

What is NOT contained in the locale setting of the operating system?

Options:

A.

currency symbol

B.

language

C.

timezone

D.

thousands separator

Question 16

What is the purpose of the iconv command?

Options:

A.

It converts bitmap images from one format to another such as PNG to JPEG.

B.

It verifies that the root directory tree complies to all conventions from the Filesystem Hierarchy Standard (FHS).

C.

It displays additional meta information from icon files ending in .ico.

D.

It changes the mode of an inode in the ext4 file system.

E.

It converts files from one character encoding to another.

Question 17

Which of the following commands can be used to convert text files in one character encoding to another character encoding?

Options:

A.

cat

B.

convert

C.

dd

D.

iconv

E.

utf2utf

Question 18

The correct crontab entry to execute the script chklog three times per month between 3 p.m. and 5 p.m.:

Options:

A.

* 3,4,5 1 * * chklog

B.

3 3,4,5 1 * * chklog

C.

3 15,16,17 * * * chklog

D.

0 15,16,17 1 * * chklog

E.

* 15,16,17 1 * * chklog

Question 19

Which command can be used to delete a group from a Linux system?

Options:

A.

groupdel

B.

groupmod

C.

groups

D.

groupedit

Question 20

Which command is used to add an empty group to the system? (Specify ONLY the command without any path or parameters.)

Options:

Question 21

Which of the following steps prevents a user from obtaining an interactive login session?

Options:

A.

Run the command chsh -s /bin/false with the user name.

B.

Set the UID for the user to 0.

C.

Remove the user from the group staff.

D.

Add the user to /etc/noaccess.

E.

Create a .nologin file in the user's home directory.

Question 22

Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?

Options:

A.

0 * * * 30 myscript

B.

30 * * * 6 myscript

C.

30 0 * * 0 myscript

D.

30 0-23 * * 0 myscript

E.

0 0-23 * * 30 myscript

Question 23

Where are user specific crontabs stored?

Options:

A.

In the database file /etc/crontab.db which is shared by all users.

B.

As individual per-user files within /var/spool/cron.

C.

As individual per-user files in /etc/cron.user.d.

D.

In the .crontab file in the user's home directory.

E.

In the file /var/cron/user-crontab which is shared by all users.

Question 24

Which commands can be used to change a user's account aging information? (Choose THREE correct answers.)

Options:

A.

usermod

B.

passwd

C.

chattr

D.

chage

E.

chsh

Question 25

Please specify the top directory containing the configuration files for the CUPS printing system. (Specify the full path to the directory.)

Options:

Question 26

Which of the following tasks can be accomplished using the command date? (Choose TWO correct answers.)

Options:

A.

Synchronize the hardware and system clocks.

B.

Output date and time in different formats.

C.

Set the system clock.

D.

Set the hardware clock.

E.

Update the time via NTP.

Question 27

Which of the following are syslog facilities? (Choose TWO correct answers.)

Options:

A.

local5

B.

mail

C.

advanced

D.

postmaster

E.

remote

Question 28

Which of the following are commonly used Mail Transfer Agent (MTA) applications? (Choose THREE correct answers.)

Options:

A.

Postfix

B.

Procmail

C.

Sendmail

D.

Exim

E.

SMTPd

Question 29

What is pool.ntp.org?

Options:

A.

A deprecated feature for maintaining system time in the Linux kernel

B.

A website which provides binary and source packages for the OpenNTPD project

C.

A virtual cluster of various timeservers

D.

A community website used to discuss the localization of Linux

Question 30

What is the purpose of the command mailq?

Options:

A.

It fetches new emails from a remote server using POP3 or IMAP.

B.

It is a multi-user mailing list manager.

C.

It is a proprietary tool contained only in the qmail MTA.

D.

It queries the mail queue of the local MTA.

E.

It is a command-line based tool for reading and writing emails.

Question 31

Which file, when using Sendmail or a similar MTA system, will allow a user to redirect all their mail to another address and is configurable by the user themselves?

Options:

A.

/etc/alias

B.

~/.alias

C.

/etc/mail/forwarders

D.

~/.forward

E.

~/.vacation

Question 32

You need to pause the CUPS printer HPLaserjet4, and you want to cancel all print jobs with a message, "hello". Which command will do this?

Options:

A.

cupsreject -c -r hello HPLaserjet4

B.

cupsreject -p -m hello HPLaserjet4

C.

cupsdisable -c -r hello HPLaserjet4

D.

cupsdisable -p -m hello HPLaserjet4

Question 33

Which of the following is observed and corrected by a NTP client?

Options:

A.

The skew in time between the system clock and the hardware clock.

B.

The skew in time between the system clock and the reference clock.

C.

Changes in the time zone of the current computer's location.

D.

Adjustments needed to support Daylight Saving Time.

Question 34

To exclude all log messages of a given logging facility, you should use a logging priority of _____ .

Options:

Question 35

Which of the following is a legacy program provided by CUPS for sending files to the printer queues on the command line?

Options:

A.

lpd

B.

lpp

C.

lpq

D.

lpr

Question 36

What command can be used to generate syslog entries of any facility and priority? (supply just the command name without a path)

Options:

Question 37

What is the purpose of the nsswitch.conf file?

Options:

A.

It is used to configure where the C library looks for system information such as host names and user passwords.

B.

It is used to configure network protocol port numbers such as for HTTP or SMTP.

C.

It is used to configure LDAP authentication services for the local system.

D.

It is used to configure which network services will be turned on during the next system boot.

Question 38

Which of the following tools used for DNS debugging, reports not only the response from the name server but also details about the query?

Options:

A.

dnsq

B.

dig

C.

hostname

D.

dnslookup

E.

zoneinfo

Question 39

How many IP-addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/28? (Specify the number only without any additional information.)

Options:

Question 40

Which of the following keywords can be used in the file /etc/resolv.conf? (Choose TWO correct answers.)

Options:

A.

substitute

B.

nameserver

C.

search

D.

lookup

E.

method

Question 41

Which keyword must be listed in the hosts option of the Name Service Switch configuration file in order to make host lookups consult the /etc/hosts file?

Options:

Question 42

Which of the following is a valid IPv6 address?

Options:

A.

2001:db8:3241::1

B.

2001::db8:4581::1

C.

2001:db8:0g41::1

D.

2001%db8%9990%%1

E.

2001.db8.819f..1

Question 43

Which of the following details is NOT provided in any output from the netstat utility?

Options:

A.

broadcast services

B.

interface statistics

C.

masquerading connections

D.

network connections

E.

routing tables

Question 44

What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)

Options:

A.

route del default

B.

ifconfig unset default

C.

netstat -r default

D.

ip route del default

E.

sysctl ipv4.default_gw=0

Question 45

Given the following routing table:

How would an outgoing packet to the destination 192.168.2.150 be handled?

Options:

A.

It would be passed to the default router 192.168.178.1 on wlan0.

B.

It would be directly transmitted on the device eth0.

C.

It would be passed to the default router 255.255.255.0 on eth0.

D.

It would be directly transmitted on the device wlan0.

E.

It would be passed to the router 192.168.1.1 on eth0.

Question 46

With IPv6, how many bits have been used for the interface identifier of an unicast address? (Specify the number using digits only.)

Options:

Question 47

What is the lowest numbered unprivileged TCP port? (Specify the number in digits only.)

Options:

Question 48

Which of the following commands will help identify a broken router between the local and the remote machine?

Options:

A.

ps

B.

netstat

C.

nslookup

D.

ifconfig

E.

traceroute

Question 49

What is the default name of the configuration file for the Xorg X11 server? (Specify the file name only without any path.)

Options:

Question 50

X is running okay but you're concerned that you may not have the right color depth set. What single command will show you the running color depth while in X?

Options:

A.

xcd

B.

xcdepth

C.

xwininfo

D.

xcolordepth

E.

cat /etc/X11

Question 51

Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.)

Options:

A.

Start and prepare the desktop environment for the user.

B.

Configure additional devices like new monitors or projectors when they are attached.

C.

Handle the login of a user.

D.

Lock the screen when the user was inactive for a configurable amount of time.

E.

Create an X11 configuration file for the current graphic devices and monitors.

Question 52

Which of the following lines is an example of a correct setting for the DISPLAY environment variable?

Options:

A.

hostname:displayname

B.

hostname:displaynumber

C.

hostname/displayname

D.

hostname/displaynumber

E.

hostname

Question 53

An administrator wants to determine the geometry of a particular window in X, so she issues the __________ -metric command and then clicks on the window.

Options:

Question 54

What is the purpose of the Sticky Keys feature in X?

Options:

A.

To assist users who have difficulty holding down multiple keys at once

B.

To prevent repeated input of a single character if the key is held down

C.

To ignore brief keystrokes according to a specified time limit

D.

To repeat the input of a single character

Question 55

Your senior administrator asked you to change the default background of his machine, which uses XDM. Which file would you edit to achieve this?

Options:

A.

/etc/X11/xdm/Xsetup

B.

/etc/X11/xdm.conf

C.

/etc/X11/xdm/Defaults

D.

/etc/X11/defaults.conf

Question 56

For accessibility assistance, which of the following programs is an on-screen keyboard?

Options:

A.

xkb

B.

atkb

C.

GOK

D.

xOSK

Question 57

What is the purpose of a screen reader?

Options:

A.

It reads text displayed on the screen to blind or visually impaired people.

B.

It reads the parameters of the attached monitors and creates an appropriate X11 configuration.

C.

It displays lines and markers to help people use speed reading techniques.

D.

It manages and displays files that contain e-books.

Question 58

The X11 configuration file xorg.conf is grouped into sections. How is the content of the section SectionName associated with that section?

Options:

A.

It is placed in curly brackets as in Section SectionName { ... }.

B.

It is placed between a line containing Section "SectionName" and a line containing EndSection.

C.

It is placed between the tags

and

D.

It is placed after the row [SectionName].

E.

It is placed after an initial unindented Section "SectionName" and must be indented by exactly one tab character.

Question 59

Which command can be used to investigate the properties for a particular window in X by clicking that window? (Specify ONLY the command without any path or parameters.)

Options:

Question 60

Which file used by XDM specifies the default wallpaper?

Options:

A.

/etc/X11/xdm/Xsetup

B.

/etc/X11/xdm.conf

C.

/etc/X11/xdm/Defaults

D.

/etc/X11/defaults.conf

Question 61

Which of the following commands displays all environment and shell variables?

Options:

A.

getargs

B.

lsenv

C.

ls

D.

env

E.

lsshell

Question 62

Which of the following features are provided by SPICE? (Choose two.)

Options:

A.

Connecting local USB devices to remote applications.

B.

Accessing graphical applications on a remote host.

C.

Replacing Xorg as local X11 server.

D.

Downloading and locally installing applications from a remote machine.

E.

Uploading and running a binary program on a remote machine.

Question 63

Which parameter of the ssh command specifies the location of the private key used for login attempts? (Specify ONLY the option name without any values or parameters.)

Options:

Question 64

Where is the system journal stored?

Options:

A.

/var/ jlog/ and /var/jlogd/

B.

/proc/log and /proc/klog

C.

/run/Iog/journal/or/var/log/journal/

D.

/var/log/syslog.bin or /var/log/syslog-jrn

E.

/etc/system/journal / or /usr/1ib/sysLend/journal/

Question 65

Which of the following programs uses the hosts.allow file to perform its main task of checking for access control restrictions to system services?

Options:

A.

tcpd

B.

inetd

C.

fingerd

D.

mountd

E.

xinetd

Question 66

Which of the following find commands will print out a list of files owned by root and with the SUID bit set in /usr?

Options:

A.

find /usr -uid 0 -perm +4000

B.

find -user root +mode +s /usr

C.

find -type suid -username root -d /usr

D.

find /usr -ls \*s\* -u root

E.

find /usr -suid -perm +4000

Question 67

Which of Ihe following commands sets the system's time zone to the Canadian Eastern Time?

A)

B)

C)

D)

E)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Question 68

What is Irue regarding public and private SSH keys? (Choose TWO correct answers.)

Options:

A.

For each user account, there is exactly one key pair that can be used to log into that account.

B.

The private key must never be revealed to anyone.

C.

Several different public keys may be generated (or the same private key.

D.

To maintain the private key's confidentiality, the SSH key pair must be created by its owner.

E.

To allow remote logins, the user's private key must be copied to the remote server.

Question 69

Which of the following commands preloads and manages keys that are used for automatic authentication while logging in to other machines using SSH?

Options:

A.

sshd

B.

ssh-agent

C.

ssh-keygen

D.

ssh-add

Question 70

What does the term Braille Display refer to?

Options:

A.

A standardized high contract graphical theme for desktop applications

B.

A Linux desktop environment similar to KDE and GNOME.

C.

A legacy display technology superseded by LCD.

D.

A physical representation of characters using small dots.

E.

A standard file format for data exchange, similar to XML

Demo: 70 questions
Total 235 questions