Summer Special Flat 65% Limited Time Discount offer - Ends in 0d 00h 00m 00s - Coupon code: netdisc

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

Page: 1 / 29
Total 293 questions

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

Testing Engine

  • Product Type: Testing Engine
$43.75  $124.99

PDF Study Guide

  • Product Type: PDF Study Guide
$38.5  $109.99
Question 1

What is the purpose of the Filesystem Hierarchy Standard?

Options:

A.

It is a security model used to ensure files are organized according to their permissions and accessibility.

B.

It provides unified tools to create, maintain and manage multiple filesystems in a common way.

C.

It defines a common internal structure of inodes for all compliant filesystems.

D.

Itis a distribution neutral description of locations of files and directories.

Question 2

Which of the following is the device file name for the second partition on the only SCSI drive?

Options:

A.

/dev/hda1

B.

/dev/sda2

C.

/dev/sd0a2

D.

/dev/sd1p2

Question 3

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 4

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

Options:

A.

^

B.

?

C.

*

D.

+

E.

$

Question 5

Which file in /proc describes the IRQs that are used by various kernel drivers? (Specify the file name only without any path.)

Options:

Question 6

How many fields are in a syntactically correct line of /etc/fstab?

Options:

A.

3

B.

4

C.

5

D.

6

E.

7

Question 7

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 8

Which of the following commands can be used to display the inode number of a given file?

Options:

A.

inode

B.

ls

C.

ln

D.

cp

Question 9

Which of the following commands is used to change metadata and options for ext3 filesystems?

Options:

A.

mod3fs

B.

tune3fs

C.

mod2fs

D.

tune2fs

E.

dump2fs

Question 10

In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)

Options:

A.

cat /proc/self/mounts

B.

free

C.

mount

D.

lsmounts

E.

cat /proc/filesystems

Question 11

When planning a partition scheme, which of the following directories could be considered for separate partitions? (Choose three.)

Options:

A.

/etc

B.

/home

C.

/var

D.

/lib

E.

/opt

Question 12

Which SysV init configuration file is commonly used to set the default run level? (Specify the full name of the file, including path.)

Options:

Question 13

Pressing the Ctrl-C combination on the keyboard while a command is executing in the foreground sends which of the following signal codes?

Options:

A.

1(SIGHUP)

B.

2(SIGINT)

C.

3(SIGQUIT)

D.

9(SIGKILL)

E.

15(SIGTERM)

Question 14

Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/creation time and does NOT generate them as needed? (Choose TWO correct answers.)

Options:

A.

ext3

B.

JFS

C.

ext2

D.

XFS

E.

procfs

Question 15

Which of the following commands changes all occurrences of the word “bob” in file data to “Bob” and prints the result to standard output?

Options:

A.

sed‘/bob/Bob’ data

B.

sed‘s/bob/Bob/g’ data

C.

sed‘s/bob/Bob/’ data

D.

sed‘/bob/Bob/’ data

E.

sed‘s/bob,Bob/’ data

Question 16

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

Options:

Question 17

Which permissions and ownership should the file /etc/passwd have?

Options:

A.

-rw-------1 rootroot531 Jun 5 22:45 /etc/passwd

B.

-rw-r--r--1 rootroot531 Jun 5 22:45 /etc/passwd

C.

-rw-r--r--1 11531 Jun 5 22:45 /etc/passwd

D.

-rw-------1 11531 Jun 5 22:45 /etc/passwd

Question 18

What does the command grub-install /dev/sda do?

Options:

A.

GRUB creates partitions on the device/dev/sdato be used with Linux.

B.

GRUB sets the default BIOS boot device to/dev/sda.

C.

GRUB installs all required files and configures the boot loader on device/dev/sda.

D.

GRUB recompiles the Linux Kernel and installs it on the Master Boot Record of device/dev/sda.

Question 19

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 20

Typically, which top level system directory is used for files and data that change regularly while the system is running and are to be kept between reboots? (Specify only the top level directory)

Options:

A.

/var

B.

/var/,

C.

Var

D.

var/

Question 21

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 22

Which file should be edited to select the network locations from which Debian installation package files are loaded?

Options:

A.

/etc/dpkg/dpkg.cfg

B.

/etc/apt/apt.conf

C.

/etc/apt/apt.conf.d

D.

/etc/apt/sources.list

E.

/etc/dpkg/dselect.cfg

Question 23

Which of the following is correct when talking about mount points?

Options:

A.

Every existing directory can be used as a mount point.

B.

Only empty directories can be used as a mount point.

C.

Directories need to have the SetUID flag set to be used as a mount point.

D.

Files within a directory are deleted when the directory is used as a mount point.

Question 24

In which directory must definition files be placed to add additional repositories to yum?

    /etc/yum.repos.d

    /etc/yum.repos.d/

    yum.repos.d

    yum.repos.d/

Options:

Question 25

Which RPM command will output the name of the package which supplied the file /etc/exports?

Options:

A.

rpm -F /etc/exports

B.

rpm -qf /etc/exports

C.

rpm -Kl /etc/exports

D.

rpm -qp /etc/exports

E.

rpm -qi/etc/exports

Question 26

An administrator has issued the following command:

grub-install --root-directory=/custom-grub /dev/sda

In which directory will new configuration files be found? (Provide the full directory path only without the filename)

Options:

A.

/custom-grub/boot/grub/

B.

/custom-grub/boot/grub

Question 27

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

    Swapoff

    /sbin/swapoff

Options:

Question 28

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

      update

      upgrade

Options:

Question 29

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 30

What is the difference between the --remove and the --purge action with the dpkg command?

Options:

A.

--remove removes the program, --purge also removes the config files

B.

--remove only removes the program, --purge only removes the config files

C.

--remove removes a package, --purge also removes all packages dependent on it

D.

--remove removes only the package file itself, --purge removes all files related to the package

Question 31

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 32

Which of the following apt-get commands will install the newest versions of all currently installed packages without removing any packages or installing new packages that are not already installed?

Options:

A.

auto-update

B.

upgrade

C.

dist-upgrade

D.

install

E.

update

Question 33

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 34

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 35

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 36

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 37

Which of the following commands will send output from the program myapp to both standard output (stdout) and the file file1.log?

Options:

A.

cat < myapp | cat > file1.log

B.

myapp 0>&1 | cat > file1.log

C.

myapp | cat > file1.log

D.

myapp | tee file1.log

E.

tee myapp file1.log

Question 38

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 39

Which of the following commands moves and resumes in the background the last stopped shell job?

Options:

A.

run

B.

bg

C.

fg

D.

back

Question 40

: 6

The /etc/_______ file lists currently mounted devices.

Options:

Question 41

Which of the following commands will reduce all consecutive spaces down to a single space?

Options:

A.

tr '\s' ' ' < a.txt > b.txt

B.

tr -c ' ' < a.txt > b.txt

C.

tr -d ' ' < a.txt > b.txt

D.

tr -r ' ' '\n' < a.txt > b.txt

E.

tr -s ' ' < a.txt > b.txt

Question 42

What is the output of the following command?

echo "Hello World" | tr -d aieou

Options:

A.

Hello World

B.

eoo

C.

Hll Wrld

D.

eoo Hll Wrld

Question 43

In compliance with the FHS, in which of the directories are man pages found?

Options:

A.

/usr/share/man

B.

/opt/man

C.

/usr/doc/

D.

/var/pkg/man

E.

/var/man

Question 44

In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?

Options:

A.

-dirmax

B.

-maxdepth

C.

-maxlevels

D.

-n

E.

-s

Question 45

Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)

      mkdir

      /usr/bin/mkdir

Options:

Question 46

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 47

Which of the following explanations are valid reasons to run a command in the background of your shell?

Options:

A.

The command does not need to execute immediately.

B.

The command has to run immediately but the user needs to log out.

C.

The system is being shut down and the command needs to restart execution immediately after the reboot.

D.

The command can run at a lower priority than normal commands run on the command line.

Question 48

Which of the following statements is correct regarding the command foo 1> bar?

Options:

A.

The stdout from the command foo is appended to the file bar.

B.

The stdout from the command foo overwrites the file bar.

C.

The command foo receives its stdin from the file bar.

D.

The command foo receives its stdin from the stdout of the command bar.

E.

The stderr from the command foo is saved to the file bar.

Question 49

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 50

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 51

What happens after issuing the command vi without any additional parameters?

Options:

A.

vi starts and loads the last file used andmoves the cursor to the position where vi was when it last exited.

B.

vi starts and requires the user to explicitly either create a new or load an existing file.

C.

vi exits with an error message as it cannot be invoked without a file name to operate on.

D.

vi starts in command mode and opens a new empty file.

E.

vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.

Question 52

What does the + symbol mean in the following grep regular expression:

grep '^d[aei]\+d$' /usr/share/dict/words

Options:

A.

Match the preceding character set ([aei]) one or more times.

B.

Match the preceding character set ([aei]) zero or more times.

C.

Match the preceding character set ([aei]) zero or one times.

D.

Match a literal + symbol.

Question 53

Which character, added to the end of a command, runs that command in the background as a child process of the current shell?

Options:

A.

!

B.

+

C.

&

D.

%

E.

#

Question 54

In the vi editor, how can commands such as moving the cursor or copying lines into the buffer be issued multiple times or applied to multiple rows?

Options:

A.

By using the command: repeat followed by the number and the command.

B.

By specifying the number right in front of a command such as 4l or 2yj.

C.

By selecting all affected lines using the shift and cursor keys before applying the command.

D.

By issuing a command such as: set repetition=4 which repeats every subsequent command 4 times.

Question 55

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 onwIan0.

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 passed to the router 192 168.1.1 oneth0

E.

It would be directly transmitted on the device wlan0.

Question 56

If neither cron. allow nor cron. deny exist in /etc/, which of the following is true?

Options:

A.

Without additional configuration, all users may create user specific crontabs

B.

Without additional configuration, only root may create user specific crontabs

C.

The cron daemon will refuse to start and report missing files in the system's logfile

D.

When a user creates a user specific crontab the system administrator must approve it explicitly

E.

The default settings of /etc/crond.conf define whether or not user specific crontabs are generally allowed or not.

Question 57

Which character in the password field of /etc/passwd is used to indicate that the encrypted password is stored in /etc/shadow?

Options:

A.

*

B.

-

C.

$

D.

#

E.

x

Question 58

What is true regarding UEFI firmware? (Choose two.)

Options:

A.

It can read and interpret partition tables

B.

It can use and read certain file systems

C.

It stores its entire configuration on the /boot/ partition

D.

It is stored in a special area within the GPT metadata

E.

It is loaded from a fixed boot disk position

Question 59

What is true about NetworkManager on a Linux system that uses its distnbution's mechanisms to configure network interfaces? (Choose TWO correct answers )

Options:

A.

NetworkManager reconfigures all network interfaces to use DHCP unless they are specifically managed by NetworkManager

B.

NetworkManager must be explicitly enabled for each interface it should manage

C.

NetworkManager by default does not change interfaces which are already configured

D.

NetworkManager disables all interfaces which were not configured by NetworkManager

E.

NetworkManager can be configured to use the distribution's network interface configuration

Question 60

Consider the following directory:

drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales

Which command ensures new files created within the directory sales are owned by the group sales? (Choose two.)

Options:

A.

chmod g+s sales

B.

setpol –R newgroup=sales sales

C.

chgrp –p sales sales

D.

chown --persistent *.sales sales

E.

chmod 2775 sales

Question 61

Which of the following files, located in a user’s home directory, contains the Bash history?

Options:

A.

.bashrc_history

B.

.bash_histfile

C.

.history

D.

.bash_history

E.

.history_bash

Question 62

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

Question 63

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 64

Which of the following commands changes all CR-LF line breaks in the text file userlist.txt to Linux standard LF line breaks and stores the result in newlist.txt?

Options:

A.

tr –d ‘\r’ < userlist.txt > newlist.txt

B.

tr –c ‘\n\r’ ‘’ userlist.txt

C.

tr ‘\r\n’ ‘’ newlist.txt

D.

tr ‘\r’ ‘\n’ userlist.txt newlist.txt

E.

tr –s ‘/^M/^J/’ userlist.txt newlist.txt

Question 65

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 66

Which ol the following fields can be found in the /etc/group file? (Choose TWO correct answers.)

Options:

A.

The home directory of the group

B.

The list of users that belong to the group

C.

The name of the group

D.

The default group ACL

E.

The description of the group

Question 67

If an alias Is exists, which of the following commands updates the ai as to point to dig contmfl nd is -1 instead of the alias's current target?

Options:

A.

set ls-'ls -1"

B.

alias ls=,ls -1'

C.

alias --force ls='ls -1*

D.

alias --update Is ls='ls -1'

E.

realias Is-'Is -1'

Question 68

Which of the following commands displays the output of the foo command on the screen and also writes it to a file called /tmp/foodata?

Options:

A.

foo | less /tmp/foodata

B.

foo | cp /tmp/foodata

C.

foo > /tmp/foodata

D.

foo | tee /tmp/foodata

E.

foo > stdout >> /tmp/foodata

Question 69

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 70

Which of the following vi commands deletes two lines, the current and the following line?

Options:

A.

d2

B.

2d

C.

2dd

D.

dd2

E.

de12

Question 71

What is true about the file .profile in a user's home directory?

Options:

A.

It must be executable

B.

It must call the binary of the login shell

C.

It must use a valid shell script syntax

D.

It must start with a shebang

E.

It must be readable for its owner only

Question 72

What information related to a user account is modified using the chage command?

Options:

A.

Default ownership for new files

B.

Group membership

C.

Set of commands available to the user

D.

Password expiry information

E.

Default permissions for new files

Question 73

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 74

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 75

You are having some trouble with a disk partition and you need to do maintenance on this partition but your users home directories are on it and several are logged in. Which command would disconnect the users and allow you to safely execute maintenance tasks?

Options:

A.

telinit 1

B.

shutdown -r now

C.

killall -9 inetd

D.

/bin/netstop --maint

E.

/etc/rc.d/init.d/network stop

Question 76

Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?

Options:

A.

systemd.target=rescue.target

B.

systemd.runlevel=rescue.target

C.

systemd.service=rescue.target

D.

systemd.default=rescue.target

E.

systemd.unit=rescue.target

Question 77

Which command will display messages from the kernel that were output during the normal boot sequence?

Options:

Question 78

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 79

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 80

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 81

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 82

The USB device filesystem can be found under /proc/______/usb/. (Please fill in the blank with the single word only)

Options:

Question 83

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 84

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 85

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 86

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 87

Which of the following information is stored within the BIOS? (Choose TWO correct answers.)

Options:

A.

Boot device order

B.

Linux kernel version

C.

Timezone

D.

Hardware configuration

E.

The system's hostname

Page: 1 / 29
Total 293 questions