Weekend Sale 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 shell command is used to continue background execution of a suspended command?

Options:

A.

&

B.

bg

C.

cont

D.

exec

E.

:&

Buy Now
Questions 5

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

Options:

A.

<

B.

<<<

C.

>

D.

>>>

E.

%>

Buy Now
Questions 6

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 7

Which of the following commands will print the last 10 lines of a text file to the standard output?

Options:

A.

cat -n 10 filename

B.

dump -n 10 filename

C.

head -n 10 filename

D.

tail -n 10 filename

Buy Now
Questions 8

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 9

What is the default action of the split command on an input file?

Options:

A.

It will break the file into new files of 1,024 byte pieces each.

B.

It will break the file into new files of 1,000 line pieces each.

C.

It will break the file into new files of 1,024 kilobyte pieces each.

D.

It will break the file into new files that are no more than 5% of the size of the original file.

Buy Now
Questions 10

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 11

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 12

When running the command

sed -e "s/a/b/" /tmp/file >/tmp/file

While /tmp/file contains data, why is /tmp/file empty afterwards?

Options:

A.

The file order is incorrect. The destination file must be mentioned before the command to ensure redirection.

B.

The command sed did not match anything in that file therefore the output is empty.

C.

When the shell establishes the redirection it overwrites the target file before the redirected command starts and opens it for reading.

D.

Redirection for shell commands do not work using the > character. It only works using the | character instead.

Buy Now
Questions 13

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 14

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 15

What does the + symbol mean in the following grep regular expression:

grep '^d[aei]\+d$' /usr/share/dict/words

Options:

A.

Match the preceding character set ([aei]) one or more times.

B.

Match the preceding character set ([aei]) zero or more times.

C.

Match the preceding character set ([aei]) zero or one times.

D.

Match a literal + symbol.

Buy Now
Questions 16

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 17

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 18

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 19

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 20

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 21

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 22

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 23

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 24

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 25

What is the difference between the --remove and the --purge action with the dpkg command?

Options:

A.

--remove removes the program, --purge also removes the config files

B.

--remove only removes the program, --purge only removes the config files

C.

--remove removes a package, --purge also removes all packages dependent on it

D.

--remove removes only the package file itself, --purge removes all files related to the package

Buy Now
Questions 26

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 27

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 28

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 29

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 30

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 31

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 32

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 33

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 34

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 35

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 36

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 37

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 38

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 39

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

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 42

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 43

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 44

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 45

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 46

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 47

Which of the following commands will produce the following output?

Options:

A.

jobs

B.

proclist

C.

netstat

D.

ps

Buy Now
Questions 48

Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.)

Options:

A.

chmod +s /tmp

B.

chmod +t /tmp

C.

chmod 1775 /tmp

D.

chmod 4775 /tmp

E.

chmod 2775 /tmp

Buy Now
Questions 49

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

Options:

Buy Now
Questions 50

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 51

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 52

What does the command mount -a do?

Options:

A.

It ensures that all file systems listed with the option noauto in /etc/fstab are mounted.

B.

It shows all mounted file systems that have been automatically mounted.

C.

It opens an editor with root privileges and loads /etc/fstab for editing.

D.

It ensures that all file systems listed with the option auto in /etc/fstab are mounted.

E.

It ensures that all file systems listed in /etc/fstab are mounted regardless of their options.

Buy Now
Questions 53

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 54

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 55

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 56

Which of the following commands will display the inode usage of each mounted filesystem?

Options:

A.

du –i

B.

df –i

C.

lsfs –i

D.

printfs –i

Buy Now
Questions 57

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 58

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 59

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 60

Which command creates a swap space on a block device or a file? (Specify ONLY the command without any path or parameters.)

Options:

Buy Now
Questions 61

Which command must be entered before exiting vi to save the current file as filea.txt?

Options:

A.

%s filea.txt

B.

%w filea.txt

C.

:save filea.txt

D.

:w filea.txt

E.

:s filea.txt

Buy Now
Questions 62

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 63

Which of the following commands lists the dependencies of the RPM package file foo.rpm?

Options:

A.

rpm –qpR foo.rpm

B.

rpm –dep foo

C.

rpm –ld foo.rpm

D.

rpm –R foo.rpm

E.

rpm –pD foo

Buy Now
Questions 64

Which of the following is true when a file system, which is neither listed in /etc/fstab nor known to system, is mounted manually?

Options:

A.

systemd ignores any manual mounts which are not done using the systemctl mount command

B.

The command systemctl mountsync can be used to create a mount unit based on the existing mount

C.

systemd automatically generates a mount unit and monitors the mount point without changing it

D.

Unless a systemd mount unit is created, systemd unmounts the file system after a short period of time

E.

systemctl unmount must be used to remove the mount because system opens a file descriptor on the mount point

Buy Now
Questions 65

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 66

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 67

Consider the following output from the command ls –i:

How would a new file named c.txt be created with the same inode number as a.txt (Inode 525385)?

Options:

A.

ln –h a.txt c.txt

B.

ln c.txt a.txt

C.

ln a.txt c.txt

D.

ln –f c.txt a.txt

E.

ln –i 525385 c.txt

Buy Now
Questions 68

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 69

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 70

Which command displays the current disk space usage for all mounted file systems? (Specify ONLY the command without any path or parameters.)

Options:

Buy Now
Questions 71

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 72

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

Options:

A.

<

B.

#>

C.

%>

D.

>>>

E.

2>&1

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

101-500 PDF

$28  $80
101-500 Engine

101-500 Testing Engine

$33.25  $95
101-500 PDF + Engine

101-500 PDF + Testing Engine

$45.5  $130