Easter Sale Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exams65

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

LPIC-1 Exam 101, Part 1 of 2, version 5.0

Last Update May 18, 2024
Total Questions : 243

We are offering FREE 101-500 LPI exam questions. All you do is to just go and sign up. Give your details, prepare 101-500 free exam questions and then go for complete pool of LPIC-1 Exam 101, Part 1 of 2, version 5.0 test questions that will help you more.

101-500 pdf

101-500 PDF

$35  $99.99
101-500 Engine

101-500 Testing Engine

$42  $119.99
101-500 PDF + Engine

101-500 PDF + Testing Engine

$56  $159.99
Questions 1

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.

Discussion 0
Questions 2

Which of the following pieces of information of an existing file is changed when a hard link pointing to that file is created?

Options:

A.  

File size

B.  

Modify timestamp

C.  

Link count

D.  

Inode number

E.  

Permissions

Discussion 0
Questions 3

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

Discussion 0
Questions 4

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

Discussion 0
Questions 5

Which of the following commands converts spaces in a file to tab characters and prints the result to standard output?

Options:

A.  

iconv

B.  

expand

C.  

unexpand

D.  

tab

Discussion 0
Questions 6

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:

Discussion 0
Questions 7

Which of the following commands changes the number of days before the ext3 filesystem on /dev/sda1 has to run through a full filesystem check while booting?

Options:

A.  

tune2fs -d 200 /dev/sda1

B.  

tune2fs -c 200 /dev/sda1

C.  

tune2fs -i 200 /dev/sda1

D.  

tune2fs -n 200 /dev/sda1

E.  

tune2fs --days 200 /dev/sda1

Discussion 0
Questions 8

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

Discussion 0
Questions 9

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

Discussion 0
Questions 10

Which command will uninstall a package but leave its configuration files in case the package is re-installed?

Options:

A.  

dpkg –s pkgname

B.  

dpkg –L pkgname

C.  

dpkg –P pkgname

D.  

dpkg –r pkgname

Discussion 0
Questions 11

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

Options:

Discussion 0
Questions 12

What is the process ID number of the init process on a SysV init based system?

Options:

A.  

-1

B.  

0

C.  

1

D.  

It is different with each reboot.

E.  

It is set to the current run level.

Discussion 0
Questions 13

Which signal is sent by the kill command by default?

Options:

A.  

SIGHUP(1)

B.  

SIGQUIT(3)

C.  

SIGKILL(9)

D.  

SIGTERM(15)

Discussion 0
Questions 14

Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)

Options:

A.  

/sbin/mke2fs -j /dev/sdb1

B.  

/sbin/mkfs -t ext3 /dev/sdb1

C.  

/sbin/mkfs -c ext3 /dev/sdb1

D.  

/sbin/mke3fs -j /dev/sdb1

Discussion 0
Questions 15

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

Discussion 0
Questions 16

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"

Discussion 0
Questions 17

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

Discussion 0
Questions 18

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.

Discussion 0
Questions 19

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:

Discussion 0
Questions 20

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:

Discussion 0
Questions 21

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

Discussion 0
Questions 22

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

Discussion 0
Questions 23

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

Options:

Discussion 0
Questions 24

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

Discussion 0
Questions 25

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

Discussion 0
Questions 26

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

Discussion 0
Questions 27

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

Discussion 0
Questions 28

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.

Discussion 0
Questions 29

Which of the following kernel parameters instructs the kernel to suppress most boot messages?

Options:

A.  

silent

B.  

verbose=0

C.  

nomesg

D.  

quiet

Discussion 0
Questions 30

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

Discussion 0
Questions 31

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

Discussion 0
Questions 32

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

Discussion 0
Questions 33

From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)

Options:

A.  

source /usr/local/bin/runme.sh

B.  

. /usr/local/bin/runme.sh

C.  

/bin/bash /usr/local/bin/runme.sh

D.  

/usr/local/bin/runme.sh

E.  

run /usr/local/bin/runme.sh

Discussion 0
Questions 34

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"

Discussion 0
Questions 35

In a nested directory structure, which find command line option would be used to restrict the command to searching down a particular number of subdirectories?

Options:

A.  

-dirmax

B.  

-maxdepth

C.  

-maxlevels

D.  

-n

E.  

-s

Discussion 0
Questions 36

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.

Discussion 0
Questions 37

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

Options:

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

Discussion 0
Questions 38

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

Discussion 0
Questions 39

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

Discussion 0
Questions 40

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

Discussion 0
Questions 41

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.

Discussion 0
Questions 42

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

Options:

A.  

!

B.  

+

C.  

&

D.  

%

E.  

#

Discussion 0
Questions 43

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

Discussion 0
Questions 44

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.

Discussion 0
Questions 45

What happens after issuing the command vi without any additional parameters?

Options:

A.  

vi starts and loads the last file used andmoves the cursor to the position where vi was when it last exited.

B.  

vi starts and requires the user to explicitly either create a new or load an existing file.

C.  

vi exits with an error message as it cannot be invoked without a file name to operate on.

D.  

vi starts in command mode and opens a new empty file.

E.  

vi starts and opens a new file which is filled with the content of the vi buffer if the buffer contains text.

Discussion 0
Questions 46

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.

Discussion 0
Questions 47

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

Discussion 0
Questions 48

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:

Discussion 0
Questions 49

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/

Discussion 0
Questions 50

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

Discussion 0
Questions 51

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

Discussion 0
Questions 52

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

Discussion 0
Questions 53

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

Discussion 0
Questions 54

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

Discussion 0
Questions 55

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

Discussion 0
Questions 56

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

Discussion 0
Questions 57

Which of the following commands updates the linker cache of shared libraries?

Options:

A.  

mkcache

B.  

soconfig

C.  

mkldconfig

D.  

lddconfig

E.  

ldconfig

Discussion 0
Questions 58

The dpkg-____ command will ask configuration questions for a specified package, just as if the package were being installed for the first time.

Options:

Discussion 0
Questions 59

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

Discussion 0
Questions 60

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

Options:

Discussion 0
Questions 61

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

Options:

Discussion 0
Questions 62

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’

Discussion 0
Questions 63

Which of the following commands list all files and directories within the /tmp/ directory and its subdirectories which are owned by the user root? (Choose two.)

Options:

A.  

find /tmp –user root -print

B.  

find –path /tmp –uid root

C.  

find /tmp –uid root -print

D.  

find /tmp –user root

E.  

find –path /tmp –user root -print

Discussion 0
Questions 64

Which of the following apt-get subcommands installs the newest versions of all currently installed packages?

Options:

A.  

auto-update

B.  

dist-upgrade

C.  

full-upgrade

D.  

install

E.  

update

Discussion 0
Questions 65

Which wildcards will match the following filenames? (Choose two.)

ttyS0

ttyS1

ttyS2

Options:

A.  

ttyS[1-5]

B.  

tty?[0-5]

C.  

tty*2

D.  

tty[A-Z][012]

E.  

tty[Ss][02]

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

Discussion 0
Questions 67

Which of the following directories on a 64-bit Linux system typically contain shared libraries? (Choose two.)

Options:

A.  

~/.lib64/

B.  

/usr/lib64/

C.  

/var/lib64/

D.  

/lib64/

E.  

/opt/lib64/

Discussion 0
Questions 68

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

Options:

A.  

<

B.  

#>

C.  

%>

D.  

>>>

E.  

2>&1

Discussion 0
Questions 69

What is contained on the EFI System Partition?

Options:

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

Discussion 0
Questions 70

Which daemon handles power management events on a Linux system?

Options:

A.  

acpid

B.  

batteryd

C.  

pwrmgntd

D.  

psd

E.  

inetd

Discussion 0
Questions 71

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

Discussion 0
Questions 72

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

Discussion 0