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

Free and Premium LPI 101-500 Dumps Questions Answers

Page: 1 / 18
Total 243 questions

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

Question 1

Which of the following environment variables overrides or extends the list of directories holding shared libraries?

Options:

A.

LD_LOAD_PATH

B.

LD_LIB_PATH

C.

LD_LIBRARY_PATH

D.

LD_SHARE_PATH

E.

LD_RUN_PATH

Buy Now
Question 2

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 3

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 4

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 5

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 6

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 7

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 8

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 9

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 10

The dpkg-____ command will ask configuration questions for a specified package, just as if the package were being installed for the first time.

Options:

Question 11

After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?

Options:

A.

kill -HUP $(pidof grub)

B.

grub-install

C.

grub

D.

No action is required

Question 12

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 13

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 14

Which of the following commands lists all currently installed packages when using RPM package management?

Options:

A.

yum --query --all

B.

yum --list --installed

C.

rpm --query --all

D.

rpm --list –installed

Question 15

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

  • Swapoff
  • /sbin/swapoff

Options:

Question 16

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 17

A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?

Options:

A.

apt-get search /etc/debian_version

B.

apt –r /etc/debian_version

C.

find /etc/debian_version -dpkg

D.

dpkg –S /etc/debian_version

E.

apt-file /etc/debian_version

Question 18

Which daemon handles power management events on a Linux system?

Options:

A.

acpid

B.

batteryd

C.

pwrmgntd

D.

psd

E.

inetd

Question 19

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

Options:

Question 20

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 21

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 22

What is true regarding the configuration of yum? (Choose two.)

Options:

A.

Changes to the repository configuration become active after running yum confupdate

B.

Changes to the yum configuration become active after restarting the yumd service

C.

The configuration of package repositories can be divided into multiple files

D.

Repository configurations can include variables such as $basearch or $releasever

E.

In case /etc/yum.repos.d/ contains files, /etc/yum.conf is ignored

Question 23

Which program runs a command in specific intervals and refreshes the display of the program’s output? (Specify ONLY the command without any path or parameters.)

Options:

Question 24

Which of the following apt-get subcommands installs the newest versions of all currently installed packages?

Options:

A.

auto-update

B.

dist-upgrade

C.

full-upgrade

D.

install

E.

update

Question 25

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 26

Given the following input stream:

txt1.txt

atxt.txt

txtB.txt

Which of the following regular expressions turns this input stream into the following output stream?

txt1.bak.txt

atxt.bak.txt

txtB.bak.txt

Options:

A.

s/^.txt/.bak/

B.

s/txt/bak.txt/

C.

s/txt$/bak.txt/

D.

s/^txt$/.bak^/

E.

s/[.txt]/.bak$1/

Question 27

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 28

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 29

Which of the following directories on a 64-bit Linux system typically contain shared libraries? (Choose two.)

Options:

A.

~/.lib64/

B.

/usr/lib64/

C.

/var/lib64/

D.

/lib64/

E.

/opt/lib64/

Question 30

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 31

Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)

Options:

Question 32

When running the command

sed -e "s/a/b/" /tmp/file >/tmp/file

While /tmp/file contains data, why is /tmp/file empty afterwards?

Options:

A.

The file order is incorrect. The destination file must be mentioned before the command to ensure redirection.

B.

The command sed did not match anything in that file therefore the output is empty.

C.

When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading.

D.

Redirection for shell commands do not work using the > character. It only works using the | character instead.

Question 33

What is the difference between the i and a command of the vi editor?

Options:

A.

i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modes automatically.

B.

i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.

C.

i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.

D.

i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.

Question 34

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 35

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

  • uk.co.certification.simulator.questionpool.PList@18e10a10

Options:

Question 36

In the vi editor, which of the following commands will copy the current line into the vi buffer?

Options:

A.

c

B.

cc

C.

1c

D.

yy

E.

1y

Question 37

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 38

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 39

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 40

Regarding the command:

nice -5 /usr/bin/prog

Which of the following statements is correct?

Options:

A.

/usr/bin/prog is executed with a nice level of -5.

B.

/usr/bin/prog is executed with a nice level of 5.

C.

/usr/bin/prog is executed with a priority of -5.

D.

/usr/bin/prog is executed with a priority of 5.

Question 41

Which variable defines the directories in which a Bash shell searches for executable commands?

Options:

A.

BASHEXEC

B.

BASHRC

C.

PATH

D.

EXECPATH

E.

PATHRC

Question 42

When given the following command line.

echo "foo bar" | tee bar | cat

Which of the following output is created?

Options:

A.

cat

B.

foo bar

C.

tee bar

D.

bar

E.

foo

Question 43

Which of the following shell redirections will write standard output and standard error output to a file named filename?

Options:

A.

2>&1 >filename

B.

>filename 2>&1

C.

1>&2>filename

D.

>>filename

E.

1&2>filename

Question 44

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 45

Which of the following commands is used to change options and positional parameters for a running Bash?

Options:

A.

history

B.

set

C.

bashconf

D.

setsh

E.

envsetup

Question 46

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 47

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

Options:

Question 48

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

Options:

Question 49

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 50

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 51

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

Question 52

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 53

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 54

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 55

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 56

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 57

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 58

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 59

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 60

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 61

How can the list of files that would be installed by the RPM package file apache-xml.rpm be previewed?

Options:

A.

rpm –qp apache-xml.rpm

B.

rpm –qv apache-xml.rpm

C.

rpm –ql apache-xml.rpm

D.

rpm –qpl apache-xml.rpm

Question 62

Which of the following commands instructs SysVinit to reload its configuration file?

Options:

A.

reinit

B.

initreload

C.

telinit 7

D.

telinit q

E.

init reinit

Question 63

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 64

Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created?

Options:

A.

File size

B.

Modify timestamp

C.

Link count

D.

Inode number

E.

Permissions

Question 65

Which of the following commands can be used to locate programs and their corresponding man pages and configuration files?

Options:

A.

dirname

B.

which

C.

basename

D.

query

E.

whereis

Question 66

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 67

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 68

Which of the following commands will produce the following output?

Options:

A.

jobs

B.

proclist

C.

netstat

D.

ps

Question 69

Which of the following commands will change the quota for a specific user?

Options:

A.

edquota

B.

repquota

C.

quota -e

D.

quota

Question 70

Which of the following commands will print important system information such as the kernel version and machine hardware architecture?

Options:

A.

sysinfo

B.

uname

C.

lspci

D.

arch

E.

info

Question 71

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 72

Creating a hard link to an ordinary file returns an error. What could be the reason for this?

Options:

A.

The source file is hidden.

B.

The source file is read-only.

C.

The source file is a shell script.

D.

The source file is already a hard link.

E.

The source and the target are on different filesystems.

Page: 1 / 18
Total 243 questions