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

LPI 201-450 LPIC-2 Exam 201, Part 1 of 2, version 4.5 Exam Practice Test

Page: 1 / 16
Total 161 questions

LPIC-2 Exam 201, Part 1 of 2, version 4.5 Questions and Answers

Question 1

How can the label root be added to the ext4 filesystem on /dev/sda1?

Options:

A.

relabel /dev/sda1 root

B.

tune2fs -L root /dev/sda1

C.

echo 'root' > /proc/fs/sda1/label

D.

labelfs --device /dev/sda1 root

Question 2

The main configuration file for autofs has this entry:

/home /etc/auto.home

What is the meaning of the /etc/auto.home file?

Options:

A.

It has the indirect maps for the mounting of file systems.

B.

It has configuration information, such as passwords and keys, for the remote file server.

C.

It has configuration information on settings for the /home mount point.

D.

It is the holds the SSL key to allow authentication to the remote file server.

Question 3

Due to extreme system use, a Linux system requires some additional swap space. To initialize 5GB of additional swap space, which combination of commands should be used?

Options:

A.

dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; mkswap /tmp/swapfile; mount /tmp/swapfile

B.

dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; swapon /tmp/swapfile

C.

dd if=/dev/zero of=/tmp/swapfile bs=1024 count=5120000; mkswap /tmp/swapfile; swapon /tmp/swapfile

D.

touch -5G /tmp/swapfile; swapon /tmp/swapfile

E.

mkswap /tmp/swapfile 512000; swapon /tmp/swapfile

Question 4

Which program lists information about files and network connections opened by processes? (Specify ONLY the command without any path or parameters.)

Options:

Question 5

A network client has an ethernet interface (eth0) configured with an IP address in the subnet 192.168.0.0/24. This subnet has a router, with the IP address 192.168.0.1, that connects this subnet to the Internet. What needs to be done on the client to enable it to use the router as its default gateway? (Choose TWO correct answers.)

Options:

A.

route add default gw 192.168.0.1 eth0

B.

ifconfig eth0 defaultroute 192.168.0.1

C.

ip route add default via 192.168.0.1 dev eth0

D.

echo defaultroute 192.168.0.1 >> /etc/resolv.conf

E.

route add defaultgw=192.168.0.1 if=eth0

Question 6

A correctly formatted entry has been added to /etc/hosts.deny to prevent certain clients from connecting to a service but this is having no effect. What could be the cause of this? (Choose TWO correct answers.)

Options:

A.

tcpd needs to be sent the HUP signal.

B.

The service needs to be restarted.

C.

The machine needs to be restarted.

D.

There is a conflicting entry in /etc/hosts.allow.

E.

The service does not support tcpwrapper.

Question 7

What is a key difference between a zImage and bzImage kernel image?

Options:

A.

zImage is compressed using gzip, bzImage is compressed using bzip2.

B.

zImage is for 2.6 series kernels, bzImage is for 3.x series kernels.

C.

zImage is limited to 64k, bzImage has no such restriction.

D.

zImage gets loaded completely into low memory. bzImage will load into high memory once low memory is full.

Question 8

What information does the file modules.dep provide?

Options:

A.

A list of all modules, compiled or not, that are available to the kernel.

B.

A list of modules trusted by the installed kernel.

C.

A list of devices and their module name.

D.

A list of all compiled modules and their dependencies.

E.

A list of modules the kernel needs to run.

Question 9

Which commands are used to load modules into the Linux kernel? (Choose TWO correct answers.)

Options:

A.

insmod

B.

loadmod

C.

kernload

D.

modprobe

E.

probemod

Question 10

Which of the following are common Linux filesystem types used for root partitions? (Choose THREE correct answers.)

Options:

A.

ext4

B.

VFAT

C.

NTFS

D.

XFS

E.

Btrfs

Question 11

Consider the following /etc/fstab file:

/dev/hda1 swap swap defaults 0 0

/dev/hda2 / ext2 defaults 1 1

/dev/hda3 /home ext2 defaults 1 2

none /proc proc defaults 0 0

/dev/sdb1 /media/usb0 vfat user,noauto 0 0

What is one of the possible commands that an ordinary (non-root) user can use to mount the /dev/sdb1 partition on the /media/usb0 mount point? (Please enter the command with all parameters and/or options but without any file system type options.)

Options:

Question 12

Where would fsck put any unreferenced file or file fragments on a ext4 filesystem?

Options:

A.

recover

B.

lost+found

C.

back

D.

lost

Question 13

Which of the following commands will erase the contents of the /dev/sdb3 partition?

Options:

A.

rm /dev/sdb3

B.

dd if=/dev/zero of=/dev/sdb3

C.

dd of=/dev/zero if=/dev/sdb3

D.

umount /dev/sdb3

Question 14

Which of the following files will be looked for and used by GNU make, if one of them exists, unless a different file is specified on the command line when trying to compile software from source code? (Choose TWO correct answers.)

Options:

A.

configure

B.

config.h.in

C.

makefile

D.

Makefile

E.

Makefile.in

Question 15

The following command has just been run successfully:

cd /opt; tar xvf /dev/nst0;

What will happen if the command sequence is run again?

Options:

A.

An error saying that there is no tape present is generated because the tape has been ejected after being used.

B.

The contents of /opt will be restored again.

C.

The entire contents of /opt will be replaced with the contents of the next file on the tape.

D.

The contents of /opt will have additional content added from the next file on the tape.

Question 16

In this example output, which descriptions match the purpose of the free, buff and cache columns? (Choose THREE correct answers.)

# vmstat 1 100

procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----

r b swpd free buff cache si so bi bo in cs us sy id wa

0 0 0 282120 134108 5797012 0 0 0 2 0 0 0 0 100 0

0 0 0 282120 134108 5797012 0 0 0 0 1007 359 0 0 100 0

0 0 0 282120 134108 5797012 0 0 0 0 1117 577 0 0 100 0

0 0 0 282120 134108 5797012 0 0 0 0 1007 366 0 0 100 0

Options:

A.

Used swap space

B.

RAM available for filesystem buffers

C.

Available free RAM

D.

RAM used for buffers

E.

RAM used for filesystem cache

Question 17

In the following output from top, which processes contribute to the percentage of time that the CPU spends in the state of wa?

Tasks: 193 total, 1 running, 190 sleeping, 2 stopped, 0 zombie

Cpu(s): 0.5%us, 0.3%sy, 0.0%ni, 98.2%id, 1.0%wa, 0.0%hi, 0.0%si, 0.0%st

Options:

A.

Processes waiting for user interaction.

B.

Processes that were already closed and are waiting to be launched again.

C.

Processes that have not been scheduled yet because they haven't been fully loaded into RAM or are in swap.

D.

Processes waiting for IO operations to complete.

Question 18

In the following output, what percentage of time was the CPU waiting for pending I/O?

# vmstat 1 100

procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----

r b swpd free buff cache si so bi bo in cs us sy id wa

0 0 0 282120 134108 5797012 0 0 0 2 0 0 0 0 100 0

0 0 0 282120 134108 5797012 0 0 0 0 1007 359 0 0 100 0

0 0 0 282120 134108 5797012 0 0 0 0 1117 577 0 0 100 0

0 0 0 282120 134108 5797012 0 0 0 0 1007 366 0 0 100 0

Options:

A.

0

B.

100

C.

35.9

D.

57.7

E.

36.6

Question 19

Which of the following configuration files are used by tcpwrapper?

Options:

A.

/etc/tcpd.allow and etc/tcpd.deny

B.

/etc/tcpwrapper.allow and /etc/tcpwrapper.deny

C.

/etc/hosts.allow and /etc/hosts.deny

D.

/etc/service.allow and /etc/service.deny

Question 20

What is the purpose of an initramfs during the Linux system start?

Options:

A.

It loads required modules and starts sub sytems like LVM to make the root file system accessible to the kernel

B.

It moves the kernel from normal system memory to initram memory to speed up kernel access

C.

It copies the root file system’s content to RAM to speed up the system and reduce writes to disk

D.

It creates a ram disk to store volatile data for directories like /tmp to reduce writes to disk

Question 21

Which of the filter keywords below could be used in the following command:

tcpdump –i eth0 ____________ 203.0.113.8 (Choose three.)

Options:

A.

host

B.

ip

C.

src

D.

dst

E.

ipv6

Question 22

Please enter the complete path to the main SysV init process configuration file.

Options:

Question 23

In case the file containing the Linux kernel is lost, what happens when the system is booting?

Options:

A.

The system starts normally since the bootloader copies the kernel to the master boot record of the hard disk.

B.

Instead of the kernel, the initramfs is loaded and instructed to mount the root filesystem and reinstall the kernel from the original package or from source.

C.

The bootloader mounts the root filesystem read-only and launches /bin/sh directly in order to allow the administrator to reinstall the kernel.

D.

Without a kernel a system cannot boot and, depending on the bootloader, an error is displayed.

Question 24

A system with SysV-init has a service installed called apache2. Which file controls the start and stop of this service and is referenced by the various runlevel directories?

Options:

A.

/etc/init.d/apache2

B.

/etc/rc2.d/70apache2

C.

/etc/rc2.d/apache2

D.

/etc/rc2.d/apache2.start

Page: 1 / 16
Total 161 questions