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

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

Page: 1 / 24
Total 243 questions

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

Question 1

Which of the following commands is used to update the list of available packages when using dpkg based package management?

Options:

A.

apt-get update

B.

apt-get upgrade

C.

apt-cache update

D.

apt-get refresh

E.

apt-cache upgrade

Question 2

Which option to the yum command will update the entire system? (Specify ONLY the option name without any additional parameters.)

  • uk.co.certification.simulator.questionpool.PList@190e5930

Options:

Question 3

To prevent users from being able to fill up the / partition, the ____________ directory should be on a separate partition if possible because it is world writeable.

Options:

A.

/tmp

B.

tmp

Question 4

Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)

  • Swapoff
  • /sbin/swapoff

Options:

Question 5

Which of the following commands lists the dependencies of a given dpkg package?

Options:

A.

apt-cache depends-onpackage

B.

apt-cache dependencies package

C.

apt-cache depends package

D.

apt-cache requires package

Question 6

What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)

  • menu.lst
  • grub.conf
  • grub.cfg

Options:

Question 7

To what environment variable will you assign or append a value if you need to tell the dynamic linker to look in a build directory for some of a program's shared libraries?

Options:

A.

LD_LOAD_PATH

B.

LD_LIB_PATH

C.

LD_LIBRARY_PATH

D.

LD_SHARE_PATH

E.

LD_RUN_PATH

Question 8

Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?

Options:

A.

dd if=/dev/zero of=/dev/sda bs=512

B.

dd if=/dev/zero of=/dev/sda bs=512 count=1

C.

dd if=/dev/zero of=/dev/sda bs=440 count=1

D.

dd if=/dev/zero of=/dev/sda bs=440

Question 9

Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?

Options:

A.

hidemenu

B.

splash

C.

timeout

D.

showmenu

Question 10

Which of the following commands updates the linker cache of shared libraries?

Options:

A.

mkcache

B.

soconfig

C.

mkldconfig

D.

lddconfig

E.

ldconfig

Question 11

Which function key is used to start Safe Mode in Windows NT?

Options:

A.

F10

B.

F8

C.

F6

D.

Windows NT does not support Safe Mode

Question 12

When removing a package, which of the following dpkg options will completely remove the files including configuration files?

Options:

A.

--clean

B.

--delete

C.

--purge

D.

–remove

Question 13

What can the Logical Volume Manager (LVM) be used for? (Choose THREE correct answers.)

Options:

A.

To create RAID 9 arrays.

B.

To dynamically change the size of logical volumes.

C.

To encrypt logical volumes.

D.

To create snapshots.

E.

To dynamically create or delete logical volumes.

Question 14

When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answers.)

Options:

A.

Timestamps

B.

MD5 checksums

C.

Inodes

D.

File sizes

E.

GnuPG signatures

Question 15

You want to preview where the package file, apache-xml.i386.rpm, will install its files before installing it. What command do you issue?

Options:

A.

rpm -qp apache-xml.i386.rpm

B.

rpm -qv apache-xml.i386.rpm

C.

rpm -ql apache-xml.i386.rpm

D.

rpm -qpl apache-xml.i386.rpm

Question 16

The message "Hard Disk Error" is displayed on the screen during Stage 1 of the GRUB boot process. What does this indicate?

Options:

A.

The kernel was unable to execute /bin/init

B.

The next Stage cannot be read from the hard disk because GRUB was unable to determine the size and geometry of the disk

C.

One or more of the filesystems on the hard disk has errors and a filesystem check should be run

D.

The BIOS was unable to read the necessary data from the Master Boot Record to begin the boot process

Question 17

Which command displays the contents of the Kernel Ring Buffer on the command line? (Provide only the command name without any options or path information)

Options:

Question 18

Which of the following statements is correct when talking about /proc/?

Options:

A.

All changes to files in /proc/ are stored in /etc/proc.d/ and restored on reboot.

B.

All files within /proc/ are read-only and their contents cannot be changed.

C.

All changes to files in /proc/ are immediately recognized by the kernel.

D.

All files within /proc/ are only readable by the root user.

Question 19

Which of the following kernel parameters instructs the kernel to suppress most boot messages?

Options:

A.

silent

B.

verbose=0

C.

nomesg

D.

quiet

Question 20

Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)

Options:

A.

0

B.

1

C.

3

D.

5

E.

6

Question 21

What information can the lspci command display about the system hardware? (Choose THREE correct answers.)

Options:

A.

Device IRQ settings

B.

PCI bus speed

C.

System battery type

D.

Device vendor identification

E.

Ethernet MAC address

Question 22

Which of the following are init systems used within Linux systems? (Choose THREE correct answers.)

Options:

A.

startd

B.

systemd

C.

Upstart

D.

SysInit

E.

SysV init

Question 23

Which SysV init configuration file should be modified to disable the ctrl-alt-delete key combination?

Options:

A.

/etc/keys

B.

/proc/keys

C.

/etc/inittab

D.

/proc/inittab

E.

/etc/reboot

Question 24

What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)

Options:

A.

Entries for all possible devices get created on boot even if those devices are not connected.

B.

Additional rules for udev can be created by adding them to /etc/udev/rules.d/.

C.

When using udev, it is not possible to create block orcharacter devices in /dev/ using mknod.

D.

The /dev/ directory is a filesystem of type tmpfs and is mounted by udev during system startup.

E.

The content of /dev/ is stored in /etc/udev/dev and is restored during system startup.

Question 25

Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)

Options:

A.

shutdown -R 1 now

B.

shutdown -single now

C.

init 1

D.

telinit 1

E.

runlevel 1

Question 26

During a system boot cycle, what program is executed after the BIOS completes its tasks?

Options:

A.

The bootloader

B.

The inetd program

C.

The init program

D.

The kernel

Question 27

Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)

Options:

Question 28

Which of the following commands reboots the system when using SysV init? (Choose TWO correct answers.)

Options:

A.

shutdown -r now

B.

shutdown -r "rebooting"

C.

telinit 6

D.

telinit 0

E.

shutdown -k now "rebooting"

Question 29

What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?

Options:

A.

/lib/init.so

B.

/sbin/init

C.

/etc/rc.d/rcinit

D.

/proc/sys/kernel/init

E.

/boot/init

Question 30

During a system boot cycle, what is the program that is run after the BIOS completes its tasks?

Options:

A.

The bootloader

B.

The inetd program

C.

The init program

D.

The kernel

Question 31

Which of the following examples for Bash file globbing matches a file named root-can-do-this.txt when used in the directory holding that file? (Choose three correct answers.)

Options:

A.

root*can?do-this.{txt,odt}

B.

r[oOoO]t-can-do*.txt

C.

{root,user,admin}-can-??-this.txt

D.

root*can*do??this.txt

E.

root***{can,may}-do-this.[tT][xX][tT]

Question 32

Instead of supplying an explicit device in /etc/fstab for mounting, what other options may be used to identify the intended partition? (Choose TWO correct answers.)

Options:

A.

FIND

B.

ID

C.

LABEL

D.

NAME

E.

UUID

Question 33

After successfully creating a hard link called bar to the ordinary file foo, foo is deleted from the filesystem. Which of the following describes the resulting situation?

Options:

A.

foo and bar would both be removed.

B.

foo would be removed while bar would remain accessible.

C.

foo would be removed. bar would still exist but would be unusable.

D.

Both foo and bar would remain accessible.

E.

The user is prompted whether bar should be removed, too.

Question 34

Which command shows all shared libraries required by a binary executable or another shared library? (Specify ONLY the command without any path or parameters.)

Options:

Question 35

In the vi editor, what vi command will copy (but not paste) from the current line at the cursor and the following 16 lines (17 lines total)? Specify the correct vi command without spaces.

Options:

Question 36

Where does the BIOS search for a bootloader?

Options:

A.

On all connected storage media regardless of the boot device order.

B.

On all connected storage media in the defined boot device order.

C.

Only on hard disk drives in the defined boot device order.

D.

Only on the last added storage media.

E.

The BIOS is not responsible to search for a valid bootloader.

Question 37

Which of the following commands will mount an already inserted CD-ROM in /dev/sr0 onto an existing directory /mnt/cdrom when issued with root privileges?

Options:

A.

mount /dev/cdrom /mnt/cdrom

B.

mount /dev/sr0 /mnt/cdrom

C.

mount –t cdrom /dev/sr0 /mnt/cdrom

D.

mount –l cdrom /dev/sr0 /mnt/cdrom

E.

mount –f /dev/sr0/mnt/cdrom

Question 38

Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.)

Options:

A.

chmod +s /tmp

B.

chmod +t /tmp

C.

chmod 1775 /tmp

D.

chmod 4775 /tmp

E.

chmod 2775 /tmp

Question 39

When using regular expressions, which of the following characters match the beginning of a line?

Options:

A.

^

B.

?

C.

*

D.

+

E.

$

Question 40

Which command creates a swap space on a block device or a file? (Specify ONLY the command without any path or parameters.)

Options:

Question 41

Which of the following apt-get commands will install the newest versions of all currently installed packages?

Options:

A.

auto-update

B.

full-upgrade

C.

dist-upgrade

D.

install

E.

update

Question 42

What command changes the nice level of a running process? (Specify ONLY the command without any path or parameters)

Options:

Question 43

Which of the following are modes of the vi editor? (Choose two.)

Options:

A.

edit mode

B.

insert mode

C.

change mode

D.

review mode

E.

command mode

Question 44

What does the command mount -a do?

Options:

A.

It mounts all available filesystems onto the current directory.

B.

It shows all mounted filesystems.

C.

It mounts all user mountable filesystems for the current user.

D.

It mounts all filesystems listed in /etc/fstab which have the option auto set.

E.

It mounts all filesystems listed in /etc/fstab which have the option noauto set.

Question 45

Which of the following command lines creates or, in case it already exists, overwrites a file called data with the output of ls?

Options:

A.

ls 3> data

B.

ls >& data

C.

ls > data

D.

ls >> data

Question 46

When redirecting the output of find to the xargs command, what option to find is useful if the filenames contain spaces?

Options:

A.

–rep-space

B.

-printnul

C.

-nospace

D.

–ignore-space

E.

–print0

Question 47

Which of the following commands redirects the output of ls to standard error?

Options:

A.

ls >-1

B.

ls <

C.

ls >&2

D.

ls >>2

E.

ls |error

Question 48

A faulty kernel module is causing issues with a network interface card. Which of the following actions ensures that this module is not loaded automatically when the system boots?

Options:

A.

Using lsmod --remove --autoclean without specifying the name of a specific module

B.

Using modinfo –k followed by the name of the offending module

C.

Using modprobe –r followed by the name of the offending module

D.

Adding a blacklist line including the name of the offending module to the file /etc/modprobe.d/blacklist.conf

E.

Deleting the kernel module’s directory from the file system and recompiling the kernel, including its modules

Question 49

Which daemon handles power management events on a Linux system?

Options:

A.

acpid

B.

batteryd

C.

pwrmgntd

D.

psd

E.

inetd

Question 50

What is contained on the EFI System Partition?

Options:

A.

The Linux root file system

B.

The first stage boot loader

C.

The default swap space file

D.

The Linux default shell binaries

E.

The user home directories

Question 51

Which of the following commands list all files and directories within the /tmp/ directory and its subdirectories which are owned by the user root? (Choose two.)

Options:

A.

find /tmp –user root -print

B.

find –path /tmp –uid root

C.

find /tmp –uid root -print

D.

find /tmp –user root

E.

find –path /tmp –user root -print

Question 52

Which umask value ensures that new directories can be read, written and listed by their owning user, read and listed by their owning group and are not accessible at all for everyone else?

Options:

A.

0750

B.

0027

C.

0036

D.

7640

E.

0029

Question 53

Which of the following properties of a Linux system should be changed when a virtual machine is cloned? (Choose two.)

Options:

A.

The partitioning scheme

B.

The file system

C.

The D-Bus Machine ID

D.

The permissions of /root/

E.

The SSH host keys

Question 54

What does the command mount --bind do?

Options:

A.

It makes the contents of one directory available in another directory

B.

It mounts all available filesystems to the current directory

C.

It mounts all user mountable filesystems to the user’s home directory

D.

It mounts all file systems listed in /etc/fstab which have the option userbind set

E.

It permanently mounts a regular file to a directory

Question 55

Which command displays the current disk space usage for all mounted file systems? (Specify ONLY the command without any path or parameters.)

Options:

Question 56

What output will be displayed when the user fred executes the following command?

echo ‘fred $USER’

Options:

A.

fred fred

B.

fred /home/fred/

C.

‘fred $USER’

D.

fred $USER

E.

‘fred fred’

Question 57

Which wildcards will match the following filenames? (Choose two.)

ttyS0

ttyS1

ttyS2

Options:

A.

ttyS[1-5]

B.

tty?[0-5]

C.

tty*2

D.

tty[A-Z][012]

E.

tty[Ss][02]

Question 58

Which of the following files exist in a standard GRUB 2 installation? (Choose two.)

Options:

A.

/boot/grub/stages/stage0

B.

/boot/grub/i386-pc/1vm.mod

C.

/boot/grub/fstab

D.

/boot/grub/grub.cfg

E.

/boot/grub/linux/vmlinuz

Question 59

Which of the following is true when a file system, which is neither listed in /etc/fstab nor known to system, is mounted manually?

Options:

A.

systemd ignores any manual mounts which are not done using the systemctl mount command

B.

The command systemctl mountsync can be used to create a mount unit based on the existing mount

C.

systemd automatically generates a mount unit and monitors the mount point without changing it

D.

Unless a systemd mount unit is created, systemd unmounts the file system after a short period of time

E.

systemctl unmount must be used to remove the mount because system opens a file descriptor on the mount point

Question 60

What is the first program the Linux kernel starts at boot time when using System V init?

Options:

A.

/lib/init.so

B.

/proc/sys/kernel/init

C.

/etc/rc.d/rcinit

D.

/sbin/init

E.

/boot/init

Question 61

Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?

Options:

A.

kill -PIPE 123

B.

kill -KILL 123

C.

kill -STOP 123

D.

kill -TERM 123

Question 62

You are trying to make a hard link to an ordinary file but ln returns an error. Which of the following could cause this?

Options:

A.

The source file is hidden.

B.

The source file is read-only.

C.

The source file is a shell script.

D.

You do not own the source file.

E.

The source and the target are on different filesystems.

Question 63

Which of the following commands displays the contents of a gzip compressed tar archive?

Options:

A.

gzip archive.tgz | tar xvf -

B.

tar ztf archive.tgz

C.

gzip -d archive.tgz | tar tvf -

D.

tar cf archive.tgz

Question 64

Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?

Options:

A.

i (lowercase)

B.

P (uppercase)

C.

p (lowercase)

D.

U (uppercase)

E.

u (lowercase)

Question 65

Which of the following commands prints all files and directories within the /tmp directory or its subdirectories which are also owned by the user root? (Choose TWO correct answers.)

Options:

A.

find /tmp -uid root -print

B.

find -path /tmp -uid root

C.

find /tmp -user root -print

D.

find /tmp -user root

E.

find -path /tmp -user root –print

Question 66

From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)

Options:

A.

source /usr/local/bin/runme.sh

B.

. /usr/local/bin/runme.sh

C.

/bin/bash /usr/local/bin/runme.sh

D.

/usr/local/bin/runme.sh

E.

run /usr/local/bin/runme.sh

Question 67

Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

Options:

A.

fmt -f 1,4 /etc/passwd

B.

split -c 1,4 /etc/passwd

C.

cut -d : -f 1,4 /etc/passwd

D.

paste -f 1,4 /etc/passwd

Question 68

Which of the following characters can be combined with a separator string in order to read from the current input source until the separator string, which is on a separate line and without any trailing spaces, is reached?

Options:

A.

<<

B.

<|

C.

!<

D.

&<

Question 69

What does the? symbol within regular expressions represent?

Options:

A.

Match the preceding qualifier one or more times.

B.

Match the preceding qualifier zero or more times.

C.

Match the preceding qualifier zero or one times.

D.

Match a literal? character.

Question 70

While editing a file in vi, the file changes due to another process. Without exiting vi, how can the file be reopened for editing with the new content?

Options:

A.

:r

B.

:n

C.

:w

D.

:e

Question 71

What is the purpose of the Bash built-in export command?

Options:

A.

It allows disks to be mounted remotely.

B.

It runs a command as a process in a subshell.

C.

It makes the command history available to subshells.

D.

It sets up environment variables for applications.

E.

It shares NFS partitions for use by other systems on the network.

Question 72

What is the default nice level when a process is started using the nice command?

Options:

A.

-10

B.

10

C.

20

D.

0

Page: 1 / 24
Total 243 questions