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

Home > LPI > LPIC Level 1 > 101-500

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

Question # 4

Which of the following commands will print important system information such as the kernel version and machine hardware architecture?

A.

sysinfo

B.

uname

C.

lspci

D.

arch

E.

info

Full Access
Question # 5

Which file from the /proc file system contains a list of all currently mounted devices? (Specify ONLY the command without any path or parameters.)

Full Access
Question # 6

Which chown command will change the ownership to dave and the group to staff on a file named data.txt?

A.

chown dave/staff data.txt

B.

chown –u dave –g staff data.txt

C.

chown --user dave --group staff data.txt

D.

chown dave:staff data.txt

Full Access
Question # 7

When piping the output of find to the xargs command, what option to find is useful if the filenames have spaces in them?

A.

–rep-space

B.

–print0

C.

–nospace

D.

–ignore-space

Full Access
Question # 8

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

Full Access
Question # 9

Which file in /proc describes the IRQs that are used by various kernel drivers? (Specify the file name only without any path.)

Full Access
Question # 10

Which command is used to start another command with a given nice level? (Specify ONLY the command without any path or parameters.)

Full Access
Question # 11

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?

A.

mod2fs

B.

fsck

C.

tune2fs

D.

mke2fs

E.

fixe2fs

Full Access
Question # 12

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?

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

Full Access
Question # 13

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?

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

Full Access
Question # 14

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

A.

FIND

B.

ID

C.

LABEL

D.

NAME

E.

UUID

Full Access
Question # 15

When planning a partition scheme, which of the following directories could be considered for separate partitions? (Choose three.)

A.

/etc

B.

/home

C.

/var

D.

/lib

E.

/opt

Full Access
Question # 16

Which command shows all shared libraries required by a binary executable or another shared library? (Specify ONLY the command without any path or parameters.)

Full Access
Question # 17

Which of the following commands lists the dependencies of a given dpkg package?

A.

apt-cache depends-onpackage

B.

apt-cache dependencies package

C.

apt-cache depends package

D.

apt-cache requires package

Full Access
Question # 18

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)

A.

/custom-grub/boot/grub/

B.

/custom-grub/boot/grub

Full Access
Question # 19

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

Full Access
Question # 20

You want to preview where the package file, apache-xml.i386.rpm, will install its files before installing it. What command do you issue?

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

Full Access
Question # 21

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
Full Access
Question # 22

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

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

Full Access
Question # 23

Which RPM command will output the name of the package which supplied the file /etc/exports?

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

Full Access
Question # 24

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?

A.

LD_LOAD_PATH

B.

LD_LIB_PATH

C.

LD_LIBRARY_PATH

D.

LD_SHARE_PATH

E.

LD_RUN_PATH

Full Access
Question # 25

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

  • uk.co.certification.simulator.questionpool.PList@190e5930
Full Access
Question # 26

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?

A.

hidemenu

B.

splash

C.

timeout

D.

showmenu

Full Access
Question # 27

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/

Full Access
Question # 28

When removing a package, which of the following dpkg options will completely remove the files including configuration files?

A.

--clean

B.

--delete

C.

--purge

D.

–remove

Full Access
Question # 29

Which of the following commands is used to update the list of available packages when using dpkg based package management?

A.

apt-get update

B.

apt-get upgrade

C.

apt-cache update

D.

apt-get refresh

E.

apt-cache upgrade

Full Access
Question # 30

Which of the following commands can be used to perform a full text search on all available packages on a Debian system?

A.

apt

B.

apt-cache

C.

apt-get

D.

apt-search

E.

dpkg

Full Access
Question # 31

When given the following command line.

echo "foo bar" | tee bar | cat

Which of the following output is created?

A.

cat

B.

foo bar

C.

tee bar

D.

bar

E.

foo

Full Access
Question # 32

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

A.

<

B.

<<<

C.

>

D.

>>>

E.

%>

Full Access
Question # 33

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

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

Full Access
Question # 34

In Bash, inserting 1>&2 after a command redirects

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.

Full Access
Question # 35

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

A.

9

B.

19

C.

49

D.

99

Full Access
Question # 36

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?

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.

Full Access
Question # 37

What is the purpose of the Bash built-in export command?

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.

Full Access
Question # 38

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?

A.

<<

B.

<|

C.

!<

D.

&<

Full Access
Question # 39

Which of the following commands prints a list of usernames (first column) and their primary group (fourth column) from the /etc/passwd file?

A.

fmt -f 1,4 /etc/passwd

B.

split -c 1,4 /etc/passwd

C.

cut -d : -f 1,4 /etc/passwd

D.

paste -f 1,4 /etc/passwd

Full Access
Question # 40

Which of the following commands kills the process with the PID 123 but allows the process to "clean up" before exiting?

A.

kill -PIPE 123

B.

kill -KILL 123

C.

kill -STOP 123

D.

kill -TERM 123

Full Access
Question # 41

You are trying to make a hard link to an ordinary file but ln returns an error. Which of the following could cause this?

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.

Full Access
Question # 42

Which of the following shell redirections will write standard output and standard error output to a file named filename?

A.

2>&1 >filename

B.

>filename 2>&1

C.

1>&2>filename

D.

>>filename

E.

1&2>filename

Full Access
Question # 43

What is the effect of the egrep command when the -v option is used?

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.

Full Access
Question # 44

Which of the following commands displays the contents of a gzip compressed tar archive?

A.

gzip archive.tgz | tar xvf -

B.

tar ztf archive.tgz

C.

gzip -d archive.tgz | tar tvf -

D.

tar cf archive.tgz

Full Access
Question # 45

Which character, added to the end of a command, runs that command in the background as a child process of the current shell?

A.

!

B.

+

C.

&

D.

%

E.

#

Full Access
Question # 46

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?

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

Full Access
Question # 47

What is true regarding the configuration of yum? (Choose two.)

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

Full Access
Question # 48

Which command uninstalls a package but keeps its configuration files in case the package is re-installed?

A.

dpkg –s pkgname

B.

dpkg –L pkgname

C.

dpkg –P pkgname

D.

dpkg –v pkgname

E.

dpkg –r pkgname

Full Access
Question # 49

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

A.

lsattr foo

B.

apropos foo

C.

locate foo

D.

whatis foo

E.

which foo

Full Access
Question # 50

Which of the following files exist in a standard GRUB 2 installation? (Choose two.)

A.

/boot/grub/stages/stage0

B.

/boot/grub/i386-pc/1vm.mod

C.

/boot/grub/fstab

D.

/boot/grub/grub.cfg

E.

/boot/grub/linux/vmlinuz

Full Access
Question # 51

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

Full Access
Question # 52

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?

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

Full Access
Question # 53

What is true regarding the command

ls > files

if files do not exist?

A.

The output of ls is printed to the terminal

B.

files is created and contains the output of ls

C.

An error message is shown and ls is not executed

D.

The command files is executed and receives the output of ls

E.

Any output of ls is discarded

Full Access
Question # 54

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?

A.

job –b dmaint

B.

dbmaint &>/dev/pts/null

C.

nohup dbmaint &

D.

bg dbmaint

E.

wait dbmaint

Full Access
Question # 55

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

A.

<

B.

#>

C.

%>

D.

>>>

E.

2>&1

Full Access
Question # 56

What output will be displayed when the user fred executes the following command?

echo ‘fred $USER’

A.

fred fred

B.

fred /home/fred/

C.

‘fred $USER’

D.

fred $USER

E.

‘fred fred’

Full Access
Question # 57

What is true regarding UEFI firmware? (Choose two.)

A.

It can read and interpret partition tables

B.

It can use and read certain file systems

C.

It stores its entire configuration on the /boot/ partition

D.

It is stored in a special area within the GPT metadata

E.

It is loaded from a fixed boot disk position

Full Access
Question # 58

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?

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

Full Access
Question # 59

What is contained on the EFI System Partition?

A.

The Linux root file system

B.

The first stage boot loader

C.

The default swap space file

D.

The Linux default shell binaries

E.

The user home directories

Full Access
Question # 60

Which of the following properties of a Linux system should be changed when a virtual machine is cloned? (Choose two.)

A.

The partitioning scheme

B.

The file system

C.

The D-Bus Machine ID

D.

The permissions of /root/

E.

The SSH host keys

Full Access
Question # 61

Which of the following statements is correct when talking about /proc/?

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.

Full Access
Question # 62

What of the following statements are true regarding /dev/ when using udev? (Choose TWO correct answers.)

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.

Full Access
Question # 63

The message "Hard Disk Error" is displayed on the screen during Stage 1 of the GRUB boot process. What does this indicate?

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

Full Access
Question # 64

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)

Full Access
Question # 65

Which run levels should never be declared as the default run level when using SysV init? (Choose TWO correct answers.)

A.

0

B.

1

C.

3

D.

5

E.

6

Full Access
Question # 66

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?

Full Access
Question # 67

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?

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.

Full Access
Question # 68

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

Full Access
Question # 69

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

Full Access
Question # 70

Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?

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

Full Access
Question # 71

During a system boot cycle, what is the program that is run after the BIOS completes its tasks?

A.

The bootloader

B.

The inetd program

C.

The init program

D.

The kernel

Full Access
Question # 72

During a system boot cycle, what program is executed after the BIOS completes its tasks?

A.

The bootloader

B.

The inetd program

C.

The init program

D.

The kernel

Full Access