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

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

Questions 4

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

Buy Now
Questions 5

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

Buy Now
Questions 6

The system is having trouble and the engineer wants to bypass the usual /sbin/init start up and run /bin/sh. What is the usual way to pass this change to the kernel from your boot loader?

Options:

A.

Start in runlevel 1.

B.

Pass init=/bin/sh on the kernel parameter line.

C.

Pass /bin/sh on the kernel parameter line.

D.

Pass start=/bin/sh on the kernel parameter line.

Buy Now
Questions 7

Which of the following commands will write a message to the terminals of all logged in users?

Options:

A.

bcast

B.

mesg

C.

print

D.

wall

E.

yell

Buy Now
Questions 8

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

Buy Now
Questions 9

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"

Buy Now
Questions 10

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.

Buy Now
Questions 11

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

Buy Now
Questions 12

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

Options:

Buy Now
Questions 13

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

Buy Now
Questions 14

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

Options:

A.

silent

B.

verbose=0

C.

nomesg

D.

quiet

Buy Now
Questions 15

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

Buy Now
Questions 16

In compliance with the FHS, in which of the following directories are documentation files found?

Options:

A.

/usr/share/documentation

B.

/usr/local/share/documentation

C.

/var/share/doc

D.

/usr/share/doc

E.

/etc/share/doc

Buy Now
Questions 17

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.

Buy Now
Questions 18

Which of the following commands print the current working directory when using a Bash shell? (Choose two.)

Options:

A.

echo “${PWD}”

B.

echo “${WD}”

C.

pwd

D.

printwd

E.

echo “${pwd}”

Buy Now
Questions 19

When piping the output of find to the xargs command, what option to find is useful if the filenames have spaces in them?

Options:

A.

–rep-space

B.

–print0

C.

–nospace

D.

–ignore-space

Buy Now
Questions 20

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

Buy Now
Questions 21

Which of the following is true for hard linked files? (Choose three.)

Options:

A.

The output of stat will report hard instead of regular file.

B.

The hard linked files have the same permissions and owner.

C.

The hard linked files share the same inode.

D.

The hard linked files are indicated by a -> when listed withls -1.

E.

The hard linked files must be on the same filesystem.

Buy Now
Questions 22

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.

Buy Now
Questions 23

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]

Buy Now
Questions 24

Which of the following commands prints a list of available package updates when using RPM-based package management?

Options:

A.

dpkg list

B.

yum list

C.

dpkg check-update

D.

yum check-update

E.

yum list-update

Buy Now
Questions 25

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

Buy Now
Questions 26

After moving data to a new filesystem, how can the former path of the data be kept intact in order to avoid reconfiguration of existing applications? (Choose TWO correct answers.)

Options:

A.

By creating an ACL redirection from the old to the new path of the data.

B.

By creating a hard link from the old to the new path of the data.

C.

By creating a symbolic link from the old to the new path of the data.

D.

By running the command touch on the old path.

E.

By mounting the new filesystem on the original path of the data.

Buy Now
Questions 27

Which of the following commands makes /bin/foo executable by everyone but writable only by its owner?

Options:

A.

chmod u=rwx,go=rx /bin/foo

B.

chmod o+rwx,a+rx /bin/foo

C.

chmod 577 /bin/foo

D.

chmod 775 /bin/foo

Buy Now
Questions 28

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

Options:

A.

where

B.

stat

C.

type

D.

case

Buy Now
Questions 29

Which of the following commands converts spaces in a file to tab characters and prints the result to standard output?

Options:

A.

iconv

B.

expand

C.

unexpand

D.

tab

Buy Now
Questions 30

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

Buy Now
Questions 31

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:

Buy Now
Questions 32

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

Buy Now
Questions 33

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.

Buy Now
Questions 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

Buy Now
Questions 35

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

Buy Now
Questions 36

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.

Buy Now
Questions 37

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

Buy Now
Questions 38

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:

Buy Now
Questions 39

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

  • Swapoff
  • /sbin/swapoff

Options:

Buy Now
Questions 40

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

Buy Now
Questions 41

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

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

Buy Now
Questions 43

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

Buy Now
Questions 44

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/

Buy Now
Questions 45

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

Buy Now
Questions 46

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

Options:

A.

<

B.

<<<

C.

>

D.

>>>

E.

%>

Buy Now
Questions 47

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.

Buy Now
Questions 48

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.

Buy Now
Questions 49

Which shell command is used to continue background execution of a suspended command?

Options:

A.

&

B.

bg

C.

cont

D.

exec

E.

:&

Buy Now
Questions 50

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

Buy Now
Questions 51

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

Buy Now
Questions 52

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

Buy Now
Questions 53

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

Buy Now
Questions 54

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

Buy Now
Questions 55

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.

Buy Now
Questions 56

Which of the following files, located in the user home directory, is used to store the Bash history?

Options:

A.

.bash_history

B.

.bash_histfile

C.

.history

D.

.bashrc_history

E.

.history_bash

Buy Now
Questions 57

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

Buy Now
Questions 58

: 6

The /etc/_______ file lists currently mounted devices.

Options:

Buy Now
Questions 59

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

Buy Now
Questions 60

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.

Buy Now
Questions 61

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/

Buy Now
Questions 62

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

Buy Now
Questions 63

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

Buy Now
Questions 64

When is the content of the kernel ring buffer reset? (Choose two.)

Options:

A.

When the ring buffer is explicitly reset using the command dmesg --clear

B.

When the ring buffer is read using dmesg without any additional parameters

C.

When a configurable amount of time, 15 minutes by default, has passed

D.

When the kernel loads a previously unloaded kernel module

E.

When the system is shut down or rebooted

Buy Now
Questions 65

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

Buy Now
Questions 66

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

Buy Now
Questions 67

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

Buy Now
Questions 68

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’

Buy Now
Questions 69

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

Buy Now
Questions 70

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

Buy Now
Questions 71

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

Buy Now
Questions 72

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

Buy Now
Exam Code: 101-500
Exam Name: LPIC-1 Exam 101, Part 1 of 2, version 5.0
Last Update: Nov 21, 2024
Questions: 243
101-500 pdf

101-500 PDF

$28  $80
101-500 Engine

101-500 Testing Engine

$33.25  $95
101-500 PDF + Engine

101-500 PDF + Testing Engine

$45.5  $130