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

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

Questions 4

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

Buy Now
Questions 5

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 6

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 7

Which of the following commands display the number of bytes transmitted and received via the eth0 network interfaced (Choose TWO correct answers.)

Options:

A.

route -v via eth0

B.

ip stats show dev eth0

C.

netstat -s -i eth0

D.

ifconfig eth0

E.

ip -s link show eth0

Buy Now
Questions 8

When considering the use of hard links, what are valid reasons not to use hard links?

Options:

A.

Hard links are not available on all Linux systems because traditional filesystems, such as ext4, do not support them

B.

Each hard link has individual ownership, permissions and ACLs which can lead to unintended disclosure of file content

C.

Hard links are specific to one filesystem and cannot point to files on another filesystem

D.

If users other than root should be able to create hard links, suln has to be installed and configured

E.

When a hard linked file is changed, a copy of the file is created and consumes additional space

Buy Now
Questions 9

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 10

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 11

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

Buy Now
Questions 12

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 13

What is the default nice level when a process is started using the nice command?

Options:

A.

-10

B.

10

C.

20

D.

0

Buy Now
Questions 14

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 15

Which of the following explanations are valid reasons to run a command in the background of your shell?

Options:

A.

The command does not need to execute immediately.

B.

The command has to run immediately but the user needs to log out.

C.

The system is being shut down and the command needs to restart execution immediately after the reboot.

D.

The command can run at a lower priority than normal commands run on the command line.

Buy Now
Questions 16

Which of the following signals is sent to a process when the key combination CTRL+C is pressed on the keyboard?

Options:

A.

SIGTERM

B.

SIGINT

C.

SIGSTOP

D.

SIGKILL

Buy Now
Questions 17

Which of the following command sets the Bash variable named TEST with the content FOO?

Options:

A.

set TEST="FOO"

B.

TEST = "FOO"

C.

var TEST="FOO"

D.

TEST="FOO"

Buy Now
Questions 18

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 19

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 20

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 21

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 22

Immediately after deleting 3 lines of text in vi and moving the cursor to a different line, which single character command will insert the deleted content below the current line?

Options:

A.

i (lowercase)

B.

P (uppercase)

C.

p (lowercase)

D.

U (uppercase)

E.

u (lowercase)

Buy Now
Questions 23

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 24

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 25

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.

Buy Now
Questions 26

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 27

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 28

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 29

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 30

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 31

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 32

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

Options:

Buy Now
Questions 33

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 34

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 35

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 36

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 37

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 38

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 39

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 40

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

Options:

Buy Now
Questions 41

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 42

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 43

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 44

Which of the following statements describes a difference between GNU GRUB Legacy and GRUB 2?

Options:

A.

GRUB 2 no longer requires a configuration file.

B.

Partition numbers start at 0 in GRUB Legacy and1in GRUB 2.

C.

grub-mkconfigonly works with GRUB Legacy if the--version 1option is used.

D.

The configuration filemenu.lst(andgrub.conf) have been replaced withgrub.config.

Buy Now
Questions 45

Which of the following shell commands makes the already defined variable TEST visible to new child processes? (Choose two.)

Options:

A.

visible TEST

B.

declare +x TEST

C.

declare –x TEST

D.

export TEST

E.

export –v TEST

Buy Now
Questions 46

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 47

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 48

After running the command umount /mnt, the following error message is displayed:

umount: /mnt: device is busy.

What is a common reason for this message?

Options:

A.

The kernel has not finished flushing disk writes to themounted device.

B.

A user has a file open in the /mnt directory.

C.

Another file system still contains a symlink to a file inside /mnt.

D.

The files in /mnt have been scanned and added to the locate database.

E.

The kernel thinks that a process is about to open a file in /mnt for reading.

Buy Now
Questions 49

In order to display all currently mounted filesystems, which of the following commands could be used? (Choose TWO correct answers.)

Options:

A.

cat /proc/self/mounts

B.

free

C.

mount

D.

lsmounts

E.

cat /proc/filesystems

Buy Now
Questions 50

Which of the following commands are common Linux commands for file management? (Choose three correct answers.)

Options:

A.

copy

B.

mv

C.

move

D.

cp

E.

mkdir

Buy Now
Questions 51

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 52

Which of the following Linux filesystems preallocates a fixed number of inodes at the filesystem's make/creation time and does NOT generate them as needed? (Choose TWO correct answers.)

Options:

A.

ext3

B.

JFS

C.

ext2

D.

XFS

E.

procfs

Buy Now
Questions 53

Which of the following are modes of the vi editor? (Choose two.)

Options:

A.

edit mode

B.

insert mode

C.

change mode

D.

review mode

E.

command mode

Buy Now
Questions 54

Which of the following are filesystems which can be used on Linux root partitions? (Choose two.)

Options:

A.

NTFS

B.

ext3

C.

XFS

D.

VFAT

E.

swap

Buy Now
Questions 55

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 56

Which of the following describes the correct order in which the components of the system boot process are started?

Options:

A.

BIOS, kernel, bootloader, init system

B.

BIOS, bootloader,kernel, init system

C.

Bootloader, BIOS, kernel, init system

D.

BIOS, bootloader, init system, kernel

E.

Bootloader, BIOS, init system, kernel

Buy Now
Questions 57

Which of the following commands can be used to create a new file that is 100kB in size?

Options:

A.

dd

B.

file

C.

mkfile

D.

touch

Buy Now
Questions 58

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 59

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

Buy Now
Questions 60

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 61

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 62

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 63

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

Buy Now
Questions 64

How can a specific user be prevented from scheduling tasks with at?

Options:

A.

By adding the specific user to the/etc/at.allow file

B.

By adding the specific user to the 'deny] section in the/etc/atd.conf lile

C.

By adding the specific user to the no jobs group

D.

By adding the specific user to the /etc/at. deny file

E.

By executing the atd —deny [user] command

Buy Now
Questions 65

Which of the following commands sets the system's time zone to the Canadian Eastern Time?

Options:

A.

localegen -t -f /usr/share/zoneinfo/Canada/Eastern > /etc/locale.tz

B.

tzconf /etc/localtime

C.

sysctl -w clock.tz='Canada/Eastern'

D.

modprobe tz_ca_est

E.

ln -sf /usr/share/zoneinfo/Canada/Eastern /etc/localtime

Buy Now
Questions 66

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

Buy Now
Questions 67

Which of the following files is not read directly by a Bash login shell?

Options:

A.

-/.bashrc

B.

-/.bash_profile

C.

-/.bash_login

D.

-/.profile

E.

/etc/profile

Buy Now
Questions 68

Which of the following are syslog facilities? (Choose TWO correct answers)

Options:

A.

locals

B.

accounting

C.

nail

D.

postmaster

E.

remote

Buy Now
Questions 69

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 70

Which of the following commands redirects the output of ls to standard error?

Options:

A.

ls >-1

B.

ls <

C.

ls >&2

D.

ls >>2

E.

ls |error

Buy Now
Questions 71

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

Buy Now
Questions 72

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

Options:

A.

<

B.

#>

C.

%>

D.

>>>

E.

2>&1

Buy Now
Questions 73

What command enables a network interface according to distribution-specific configuration such as /etc/network/interfaces of /etc/sysconfig/network-scripts/if cfg-erh0? (Specify ONLY the command without any path or parameters)

Options:

Buy Now
Questions 74

Given the following routing table:

How would an outgoing packet to the destination 192 168 2 150 be handled?

Options:

A.

It would be passed to the default router 192 168 178 1 onwIan0.

B.

It would be directly transmitted on the device eth0

C.

It would be passed to the default router 255 255 255 0 on eth0

D.

It would be passed to the router 192 168.1.1 oneth0

E.

It would be directly transmitted on the device wlan0.

Buy Now
Questions 75

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

Buy Now
Questions 76

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 77

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 78

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

    Swapoff

    /sbin/swapoff

Options:

Buy Now
Questions 79

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 80

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 81

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 82

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 83

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 84

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 85

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 86

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 87

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