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

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

Questions 4

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 5

What command will generate a list of user names from /etc/passwd along with their login shell?

Options:

A.

column -s : 1,7 /etc/passwd

B.

chop -c 1,7 /etc/passwd

C.

colrm 1,7 /etc/passwd

D.

cut -d: -f1,7 /etc/passwd

Buy Now
Questions 6

Which variable defines the directories in which a Bash shell searches for executable commands?

Options:

A.

BASHEXEC

B.

BASHRC

C.

PATH

D.

EXECPATH

E.

PATHRC

Buy Now
Questions 7

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 8

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 9

What is the purpose of the xargs command?

Options:

A.

It passes arguments to an X server.

B.

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

C.

It helps shell scripts take variable argument lists.

D.

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

E.

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

Buy Now
Questions 10

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 11

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 12

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 13

Which SysV init configuration file is commonly used to set the default run level? (Specify the full name of the file, including path.)

Options:

Buy Now
Questions 14

Which of the following commands updates the already installed RPM package rpmname?

Options:

A.

rpm --update rpmname

B.

rpm –U rpmname

C.

rpm –q rpmname

D.

rpm --force rpmname

E.

rpm –u rpmname

Buy Now
Questions 15

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 16

Which of the following commands can be used to display the inode number of a given file?

Options:

A.

inode

B.

ls

C.

ln

D.

cp

Buy Now
Questions 17

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 18

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 19

Which command is used to create and initialize the files used to store quota information? (Specify ONLY the command without any path or parameters.)

Options:

Buy Now
Questions 20

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 21

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 22

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 23

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 24

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 25

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 26

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 27

: 6

The /etc/_______ file lists currently mounted devices.

Options:

Buy Now
Questions 28

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 29

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 30

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 31

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 32

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 33

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 34

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 35

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 36

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

    Swapoff

    /sbin/swapoff

Options:

Buy Now
Questions 37

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 38

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 39

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 40

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 41

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 42

Which umask value will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------) for directories? (Specify only the numerical umask value.)

Options:

Buy Now
Questions 43

What do the permissions -rwSr-xr-x mean for a binary file when it is executed as a command?

Options:

A.

The command is SetUID and it will be executed with the effective rights of the owner.

B.

The command will be executed with the effective rights of the group instead of the owner.

C.

The execute flag is not set for the owner. Therefore, the SetUID flag is ignored.

D.

The command will be executed with the effective rights of the owner and group.

Buy Now
Questions 44

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 45

If an alias Is exists, which of the following commands updates the ai as to point to dig contmfl nd is -1 instead of the alias ' s current target?

Options:

A.

set ls- ' ls -1 "

B.

alias ls=,ls -1 '

C.

alias --force ls= ' ls -1*

D.

alias --update Is ls= ' ls -1 '

E.

realias Is- ' Is -1 '

Buy Now
Questions 46

Which of the following getent invocations lists all existing users?

Options:

A.

getent homes

B.

getent uids

C.

getent passwd

D.

getent users

E.

getent logins

Buy Now
Questions 47

Which of the commands below might have produced the following output?

101-500 Question 47

Options:

A.

dig -t rax www.example.org

B.

dig www.example.org

C.

dig -t ns www.example.org

D.

dig -t a www.example.org

E.

dig -t soa www.example.org

Buy Now
Questions 48

On a system using systemd-joumaid, which of the following commands add the message Howdy to the system log? (Choose TWO correct answers.)

append Howdy

Options:

A.

logger Howdy

B.

systemd-cat echo Howdy

C.

echo Howdy > /dev/journal

D.

joucnalctl add Howdy

Buy Now
Questions 49

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 50

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 51

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 52

Which command is used to sync the hardware clock to the system clock? (Specify ONLY the command without any path or parameters.)

Options:

Buy Now
Questions 53

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 54

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 55

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 56

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 57

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 58

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 59

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 60

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

Options:

Buy Now
Questions 61

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 62

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

Options:

Buy Now
Questions 63

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 64

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 65

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 66

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 67

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 68

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 69

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 70

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 71

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 72

Creating a hard link to an ordinary file returns an error. What could be the reason for this?

Options:

A.

The source file is hidden.

B.

The source file is read-only.

C.

The source file is a shell script.

D.

The source file is already a hard link.

E.

The source and the target are on different filesystems.

Buy Now
Questions 73

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 74

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 75

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 76

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 77

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 78

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 79

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 80

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

Options:

A.

<</p>

B.

< < <</p>

C.

>

D.

> > >

E.

% >

Buy Now
Questions 81

What is the maximum niceness value that a regular user can assign to a process with the nice command when executing a new process?

Options:

A.

9

B.

19

C.

49

D.

99

Buy Now
Questions 82

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 83

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 84

Consider the following directory:

drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales

Which command ensures new files created within the directory sales are owned by the group sales? (Choose two.)

Options:

A.

chmod g+s sales

B.

setpol –R newgroup=sales sales

C.

chgrp –p sales sales

D.

chown --persistent *.sales sales

E.

chmod 2775 sales

Buy Now
Questions 85

What is true regarding public and pnvate SSH keys? (Choose TWO correct answers.)

Options:

A.

For each user account, there is exactly one key pair that can be used to log into that account

B.

The private key must never be revealed to anyone

C.

Several different public keys may be generated for the same private key

D.

To maintain the private key ' s confidentiality, the SSH key pair must be created by its owner

E.

To allow remote logins, the user ' s private key must be copied to the remote server

Buy Now
Questions 86

Which of the following commands lists all defined variables and functions within Bash?

Options:

A.

env

B.

export

C.

env -a

D.

set

E.

echo $ENV

Buy Now
Questions 87

Given the following routing table:

101-500 Question 87

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

PDF + Testing Engine

$63.52  $181.49

Testing Engine

$50.57  $144.49
buy now 101-500 testing engine

PDF (Q&A)

$43.57  $124.49
buy now 101-500 pdf