Winter Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dumps65

LPI 101-500 Dumps

Page: 1 / 24
Total 243 questions

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

Question 1

The system configuration file named _______ is commonly used to set the default runlevel. (Please provide the file name with full path information)

Options:

Question 2

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 3

Which utility would be used to change how often a filesystem check is performed on an ext2 filesystem without losing any data stored on that filesystem?

Options:

A.

mod2fs

B.

fsck

C.

tune2fs

D.

mke2fs

E.

fixe2fs

Question 4

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

Options:

A.

edquota

B.

repquota

C.

quota -e

D.

quota

Question 5

Which of the following partition types is used for Linux swap spaces when partitioning hard disk drives?

Options:

A.

82

B.

83

C.

8e

D.

fd

E.

7

Question 6

Which of the following commands enables the setuid (suid) permission on the executable /bin/foo?

Options:

A.

chmod 1755 /bin/foo

B.

chmod 4755 /bin/foo

C.

chmod u-s /bin/foo

D.

chmod 755+s /bin/foo

Question 7

Which command is used to query information about the available packages on a Debian system?

Options:

A.

apt-cache

B.

apt-get

C.

apt-search

D.

dpkg

E.

dpkg-search

Question 8

Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?

Options:

A.

tune2fs -d 200 /dev/sda1

B.

tune2fs -c 200 /dev/sda1

C.

tune2fs -i 200 /dev/sda1

D.

tune2fs -n 200 /dev/sda1

E.

tune2fs --days 200 /dev/sda1

Question 9

What is the purpose of the xargs command?

Options:

A.

It passes arguments to an X server.

B.

It reads standard input (STDIN) and builds up command lines to execute.

C.

It helps shell scripts take variable argument lists.

D.

It asks a question, graphically, and returns the answer to the shell.

E.

It allows users to specify long options for commands that normally only accept short options.

Question 10

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 11

Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?

Options:

A.

apropos

B.

which

C.

find

D.

query

E.

whereis

Question 12

Which of the following commands shows the definition of a given shell command?

Options:

A.

where

B.

stat

C.

type

D.

case

Question 13

Which of the following commands changes the ownership of file.txt to the user dan and the group staff?

Options:

A.

chown dan/staff file.txt

B.

chown dan:staff file.txt

C.

chown -u dan -g staff file.txt

D.

chown dan -g staff file.txt

Question 14

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 15

Following the Filesystem Hierarchy Standard (FHS), where should binaries that have been compiled by the system administrator be placed in order to be made available to all users on the system?

Options:

Question 16

Which Debian package management tool asks the configuration questions for a specific already installed package just as if the package were being installed for the first time? (Specify ONLY the command without any path or parameters.)

Options:

Question 17

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 18

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 19

Which of the following commands can be used to perform a full text search on all available packages on a Debian system?

Options:

A.

apt

B.

apt-cache

C.

apt-get

D.

apt-search

E.

dpkg

Question 20

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 21

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 22

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 23

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 24

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

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

  • Swapoff
  • /sbin/swapoff

Options:

Question 27

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 28

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 29

Which world-writable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)

Options:

Question 30

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

Question 31

Which of the following commands can be used to create a USB storage media from a disk image?

Options:

A.

gdisk

B.

dd

C.

cc

D.

fdisk

E.

mount

Question 32

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 33

When starting a program with the nice command without any additional parameters, which nice level is set for the resulting process?

Options:

A.

-10

B.

0

C.

10

D.

20

Question 34

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 35

Which grep command will print only the lines that do not end with a / in the file foo?

Options:

A.

grep'/$' foo

B.

grep '/#' foo

C.

grep -v '/$' foo

D.

grep -v '/#' foo

Question 36

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 37

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 38

In Bash, inserting 1>&2 after a command redirects

Options:

A.

standard error to standard input.

B.

standard input to standard error.

C.

standard output to standard error.

D.

standard error to standard output.

E.

standard output to standard input.

Question 39

What is the effect of the egrep command when the -v option is used?

Options:

A.

It enables color to highlight matching parts.

B.

It only outputs non-matching lines.

C.

It shows the command's version information.

D.

It changes the output order showing the last matching line first.

Question 40

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 41

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 42

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 43

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 44

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 45

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 46

Which of the following regular expressions represents a single upper-case letter?

Options:

A.

:UPPER:

B.

[A-Z]

C.

!a-z

D.

%C

E.

{AZ}

Question 47

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 48

Given a log file loga.log with timestamps of the format DD/MM/YYYY:hh:mm:ss, which command filters out all log entries in the time period between 8:00 am and 8:59 am?

Options:

A.

grep –E ‘:08:[09]+:[09]+’ loga.log

B.

grep –E ‘:08:[00]+’ loga.log

C.

grep –E loga.log ‘:08:[0-9]+:[0-9]+’

D.

grep loga.log ‘:08:[0-9]:[0-9]’

E.

grep –E ‘:08:[0-9]+:[0-9]+’ loga.log

Question 49

Which of the following commands lists the dependencies of the RPM package file foo.rpm?

Options:

A.

rpm –qpR foo.rpm

B.

rpm –dep foo

C.

rpm –ld foo.rpm

D.

rpm –R foo.rpm

E.

rpm –pD foo

Question 50

Which command must be entered before exiting vi to save the current file as filea.txt?

Options:

A.

%s filea.txt

B.

%w filea.txt

C.

:save filea.txt

D.

:w filea.txt

E.

:s filea.txt

Question 51

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 52

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 53

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 54

Which command uninstalls a package but keeps its configuration files in case the package is re-installed?

Options:

A.

dpkg –s pkgname

B.

dpkg –L pkgname

C.

dpkg –P pkgname

D.

dpkg –v pkgname

E.

dpkg –r pkgname

Question 55

Which is the default percentage of reserved space for the root user on new ext4 filesystems?

Options:

A.

10%

B.

3%

C.

15%

D.

0%

E.

5%

Question 56

Which of the following statements are true about the boot sequence of a PC using a BIOS? (Choose two.)

Options:

A.

Some parts of the boot process can be configured from the BIOS

B.

Linux does not require the assistance of the BIOS to boot a computer

C.

The BIOS boot process starts only if secondary storage, such as the hard disk, is functional

D.

The BIOS initiates the boot process after turning the computer on

E.

The BIOS is started by loading hardware drivers from secondary storage, such as the hard disk

Question 57

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

Options:

Question 58

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 59

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 60

Which of the following are valid stream redirection operators within Bash? (Choose two.)

Options:

A.

<

B.

#>

C.

%>

D.

>>>

E.

2>&1

Question 61

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 62

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 63

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 64

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 65

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 66

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

Options:

Question 67

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 68

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 69

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 70

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 71

You suspect that a new ethernet card might be conflicting with another device. Which file should you check within the /proc tree to learn which IRQs are being used by which kernel drivers?

Options:

Question 72

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

Page: 1 / 24
Total 243 questions