Pre-Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

Free Practice Questions for the LPIC Level 1 101-500 Exam (2026 Updated)

At Marks4sure, we are dedicated to providing IT professionals with the most accurate and reliable preparation materials for the LPI 101-500 exam. To support your certification journey, we have made a selection of our premium 2026 LPIC Level 1 practice questions and answers available completely free. You can take this practice test as many times as you need. Every question includes a detailed, expertly verified explanation to ensure you fully grasp the core security concepts before test day.

Questions 4

: 6

The /etc/_______ file lists currently mounted devices.

Options:

Buy Now
Questions 5

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 6

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 7

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 8

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:

Buy Now
Questions 9

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 10

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 11

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 12

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 13

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

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

Buy Now
Questions 15

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 16

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

Buy Now
Questions 17

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 18

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 19

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 20

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 21

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 22

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

Options:

A.

<</p>

B.

# >

C.

% >

D.

> > >

E.

2 > & 1

Buy Now
Questions 23

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 24

Which of the following is true regarding the command sendmail?

Options:

A.

With any MTA, the sendmail command must be run periodically by the cron daemon.

B.

When using systemd, sendmail is an alias to relayctl.

C.

The sendmail command prints the MTA ' s queue history of which mails have been sent successfully.

D.

It is only available when the sendmail MTA is installed.

E.

All common MTAs, including Postfix and Exim, provide a sendmail command.

Buy Now
Questions 25

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 26

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 27

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

Buy Now
Questions 28

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 29

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 30

Which of the following commands replaces each occurrence of ' bob ' in the file letter with ' Bob ' and writes the result to the file newletter?

Options:

A.

sed ' /bob/Bob ' letter > newletter

B.

sed s/bob/Bob/ letter < newletter

C.

sed ' s/bob/Bob ' letter > newletter

D.

sed ' s/bob/Bob/g ' letter > newletter

E.

sed ' s/bob, Bob/ ' letter > newletter

Buy Now
Questions 31

While editing a file in vi, the file changes due to another process. Without exiting vi, how can the file be reopened for editing with the new content?

Options:

A.

:r

B.

:n

C.

:w

D.

:e

Buy Now
Questions 32

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 33

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

    Swapoff

    /sbin/swapoff

Options:

Buy Now
Questions 34

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.

Buy Now
Questions 35

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 36

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.

Buy Now
Questions 37

Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)

Options:

A.

esc ZZ

B.

ctrl :w!

C.

esc zz

D.

esc :wq!

E.

ctrl XX

Buy Now
Questions 38

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 39

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 40

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 41

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 42

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 43

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 44

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

Buy Now
Questions 45

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

Buy Now
Questions 46

Which of the following commands installs all packages with a name ending with the string foo?

Options:

A.

zypper get “*foo”

B.

zypper update “foo?”

C.

zypper force “foo*”

D.

zypper install “*foo”

E.

zypper add “.*foo”

Buy Now
Questions 47

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 48

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 49

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 50

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 51

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

Buy Now
Questions 52

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

Buy Now
Questions 53

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 54

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 55

Which signal is missing from the following command that is commonly used to instruct a daemon to reinitialize itself, including reading configuration files?

killall -s _______ daemon

      HUP

      SIGHUP

      1

Options:

Buy Now
Questions 56

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 57

Which of the following commands will delete the default gateway from the system ' s IP routing table? (Choose TWO correct answers)

ifconfig unset default

Options:

A.

route del default

B.

ip route del default

C.

netstat -r default

D.

sysctl ipv4.default gw=0

Buy Now
Questions 58

What information is shown by the echo $ ? command?

Options:

A.

The process ID of the echo command

B.

The exit value of the command executed immediately before echo.

C.

The process ID which will be used for the next command

D.

The exit value of the echo command

E.

The process ID of the current shell

Buy Now
Questions 59

Which parameter is missing in the command

ip link set _dev eth0

to activate the previously inactive network interface eth0? (Specify the parameter only without any command, path or additional options)

Options:

Buy Now
Questions 60

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

Buy Now
Questions 61

What is the purpose of the iccnv command?

Options:

A.

It converts bitmap images from one format to another such as PNG to JPEG

B.

It verifies that the root directory tree complies to all conventions from the Filesystem Hierarchy Standard (FHS)

C.

It converts files from one character set to an other

D.

It changes the mode of an inode in the ext4 filesystem

E.

It displays additional meta information from icon files ending in .ico

Buy Now
Questions 62

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 63

Which of the following tasks are handled by a display manager like XDM or KDM? (Choose TWO correct answers.)

Options:

A.

Configure additional devices like new monitors or projectors when they are attached

B.

Start and prepare the desktop environment for the user

C.

Create an X11 configuration file for the current graphic devices and monitors

D.

Lock the screen when the user was inactive for a configurable amount of time

E.

Handle the login of a user

Buy Now
Questions 64

Which of the following commands finds all files owned by root that have the SetUID bit set?

Options:

A.

find / -user root -perm -4000

B.

find / -user 0 -mode +s

C.

find / -owner 0 -permits 0x100000000

D.

find / -owner root -setuid

E.

find / --filter uid=1 --filter pers=u+s

Buy Now
Questions 65

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 66

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 67

Which of the following commands displays the path to the executable file that would be executed when the command foo is invoked?

Options:

A.

lsattr foo

B.

apropos foo

C.

locate foo

D.

whatis foo

E.

which foo

Buy Now
Questions 68

Which of the following statements is correct for a command line ending with a & character?

Options:

A.

The command’s output is redirected to/dev/null.

B.

The result of the command defines if the next command will be run.

C.

Thecommand is run in background of the current shell.

D.

The command is run as a direct child of theinitprocess.

Buy Now
Questions 69

In Bash, inserting 2 > & 1 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 70

Which of the following is a limitation of the cut command?

Options:

A.

Thecutcommand can only select output by field position.

B.

Thecutcommand cannot reorder fields.

C.

Thecutcommand only works on ASCII text.

D.

Thecutcommand cannot use different input and output delimiters.

Buy Now
Questions 71

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 72

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

Buy Now
Questions 73

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 74

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

Options:

A.

3

B.

4

C.

5

D.

6

E.

7

Buy Now
Questions 75

Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?

Options:

A.

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

B.

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

C.

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

D.

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

E.

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

Buy Now
Questions 76

Which command reads and displays the current contents of the Kernel Ring Buffer on the command line? (Specify ONLY the command without any path or parameters.)

Options:

Buy Now
Questions 77

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

Buy Now
Questions 78

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

Buy Now
Questions 79

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

Options:

A.

^

B.

?

C.

*

D.

+

E.

$

Buy Now
Questions 80

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.

Buy Now
Questions 81

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 82

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 83

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 84

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 85

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

Buy Now
Questions 86

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.

Buy Now
Questions 87

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
Exam Code: 101-500
Exam Name: LPIC-1 Exam 101, Part 1 of 2, version 5.0
Last Update: Sep 23, 2026
Questions: 293

PDF + Testing Engine

$64.99   $185.69

Testing Engine

$49.99   $142.83

PDF (Q&A)

$54.99   $157.11