Summer 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 of the following settings for umask ensures that new files have the default permissions -rw-r----- ?

Options:

A.

0017

B.

0640

C.

0038

D.

0027

Buy Now
Questions 5

How is a symbolic link called bar.conf pointing to foo.conf created?

Options:

A.

ln –s foo.conf bar.conf

B.

ln foo.conf bar.conf

C.

ln –s bar.conf foo.conf

D.

ln bar.conffoo.conf

Buy Now
Questions 6

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

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

Buy Now
Questions 8

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.

Buy Now
Questions 9

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 10

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

Buy Now
Questions 11

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.

&<

Buy Now
Questions 12

Which of the following commands can be used to determine how long the system has been running? (Choose TWO correct answers.)

Options:

A.

uptime

B.

up

C.

top

D.

uname -u

E.

time –up

Buy Now
Questions 13

Which option to the tee command will cause the output to be concatenated on the end of the output file instead of overwriting the existing file contents?

Options:

A.

–a

B.

–c

C.

--no-clobber

D.

--continue

Buy Now
Questions 14

What is the process ID number of the init process on a SysV init based system?

Options:

A.

-1

B.

0

C.

1

D.

It is different with each reboot.

E.

It is set to the current run level.

Buy Now
Questions 15

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 16

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

Buy Now
Questions 17

Which program updates the database that is used by the locate command?

Options:

Buy Now
Questions 18

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

Options:

A.

^

B.

?

C.

*

D.

+

E.

$

Buy Now
Questions 19

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:

Buy Now
Questions 20

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

Options:

Buy Now
Questions 21

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

Buy Now
Questions 22

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

Buy Now
Questions 23

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

Buy Now
Questions 24

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.

Buy Now
Questions 25

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 26

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

Buy Now
Questions 27

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 28

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 29

A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?

Options:

A.

rmdir '~/\dir'

B.

rmdir "~/\dir"

C.

rmdir ~/'dir'

D.

rmdir ~/\dir

E.

rmdir ~/\\dir

Buy Now
Questions 30

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.

#

Buy Now
Questions 31

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 32

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

Buy Now
Questions 33

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

Buy Now
Questions 34

Which of the following sections exists in a systemd timer unit?

Options:

A.

[Events]

B.

[Timer]

C.

[cron]

D.

[Schedule]

E.

[Trigger]

Buy Now
Questions 35

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

Buy Now
Questions 36

Which of the following commands installs GRUB 2 into the master boot record on the third hard disk?

Options:

A.

grub2 install /dev/sdc

B.

grub-mkrescue /dev/sdc

C.

grub-mbrinstall /dev/sdc

D.

grub-setup /dev/sdc

E.

grub-install /dev/sdc

Buy Now
Questions 37

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

Buy Now
Questions 38

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 39

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

Buy Now
Questions 40

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

Buy Now
Questions 41

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:

Buy Now
Questions 42

Which of the following environment variables can be defined in locale. conf? (Choose TWO correct answers )

Options:

A.

LC_ALL

B.

Lr_USERNAME

C.

LCMJTF8

D.

LC_GEOGRAPHY

E.

LC_TIME

Buy Now
Questions 43

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

Buy Now
Questions 44

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

Buy Now
Questions 45

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]

Buy Now
Questions 46

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%

Buy Now
Questions 47

The command dbmaint & was used to run dbmaint in the background. However, dbmaint is terminated after logging out of the system. Which alternative dbmaint invocation lets dbmaint continue to run even when the user running the program logs out?

Options:

A.

job –b dmaint

B.

dbmaint &>/dev/pts/null

C.

nohup dbmaint &

D.

bg dbmaint

E.

wait dbmaint

Buy Now
Questions 48

What is true regarding the statement beginning with #! that is found in the first line of a script? (Choose TWO correct answers.)

Options:

A.

It prevents the script from being executed until the \ is removed

B.

It triggers the installation of the scripts interpreter

C.

It specifies the path and the arguments of the interpreter used to run the script

D.

It defines the character encoding of the script

E.

It is a comment that is ignored by the script interpreter

Buy Now
Questions 49

Which daemon handles power management events on a Linux system?

Options:

A.

acpid

B.

batteryd

C.

pwrmgntd

D.

psd

E.

inetd

Buy Now
Questions 50

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.

Buy Now
Questions 51

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

Buy Now
Questions 52

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 53

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 54

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

Buy Now
Questions 55

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

Options:

A.

mkcache

B.

soconfig

C.

mkldconfig

D.

lddconfig

E.

ldconfig

Buy Now
Questions 56

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

Buy Now
Questions 57

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 58

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:

Buy Now
Questions 59

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

Buy Now
Questions 60

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

Options:

Buy Now
Questions 61

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:

Buy Now
Questions 62

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 63

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

      update

      upgrade

Options:

Buy Now
Questions 64

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 65

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 66

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 67

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:

Buy Now
Questions 68

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 69

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

Buy Now
Questions 70

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

Buy Now
Questions 71

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.

Buy Now
Questions 72

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 73

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

Buy Now
Questions 74

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:

Buy Now
Questions 75

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 76

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:

Buy Now
Questions 77

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 78

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

Options:

Buy Now
Questions 79

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 80

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

Buy Now
Questions 81

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 82

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

Buy Now
Questions 84

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

Buy Now
Questions 85

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

Options:

Buy Now
Questions 86

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 87

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

Buy Now
Exam Code: 101-500
Exam Name: LPIC-1 Exam 101, Part 1 of 2, version 5.0
Last Update: Sep 15, 2025
Questions: 293
101-500 pdf

101-500 PDF

$29.75  $84.99
101-500 Engine

101-500 Testing Engine

$35  $99.99
101-500 PDF + Engine

101-500 PDF + Testing Engine

$47.25  $134.99