New Year Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70special

LPI 101-400 LPI Level 1 Exam 101, Junior Level Linux Certification, Part 1 of 2 Exam Practice Test

Page: 1 / 18
Total 177 questions

LPI Level 1 Exam 101, Junior Level Linux Certification, Part 1 of 2 Questions and Answers

Testing Engine

  • Product Type: Testing Engine
$37.5  $124.99

PDF Study Guide

  • Product Type: PDF Study Guide
$33  $109.99
Question 1

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

Question 2

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

Options:

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

Question 3

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?

Options:

A.

hidemenu

B.

splash

C.

timeout

D.

showmenu

Question 4

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

Question 5

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

Options:

A.

mkcache

B.

soconfig

C.

mkldconfig

D.

lddconfig

E.

ldconfig

Question 6

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:

Question 7

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

Question 8

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

Options:

Question 9

Which of the following commands is used to modify quota settings? (Choose two.)

Options:

A.

editquota

B.

setquota

C.

edquota

D.

quotaedit

E.

quotaset

Question 10

What does the command mount -a do?

Options:

A.

It mounts all available filesystems onto the current directory.

B.

It shows all mounted filesystems.

C.

It mounts all user mountable filesystems for thecurrent user.

D.

It mounts all filesystems listed in /etc/fstab which have the option auto set.

E.

It mounts all filesystems listed in /etc/fstab which have the option noauto set.

Question 11

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

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?

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

Question 13

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

Question 14

Which of the following commands can be used to search for the executable file foo when it has been placed in a directory not included in $PATH?

Options:

A.

apropos

B.

which

C.

find

D.

query

E.

whereis

Question 15

Which command displays a list of all background tasks running in the current shell? (Specify ONLY the command without any path or parameters.)

Options:

Question 16

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

Question 17

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)

Question 18

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

Question 19

Which of the following sequences in the vi editor saves the opened document and exits the editor? (Choose TWO correct answers.)

Options:

A.

esc ZZ

B.

ctrl :w!

C.

esc zz

D.

esc :wq!

E.

ctrl XX

Question 20

What is the difference between the i and a commands of the vi editor?

Options:

A.

i (interactive) requires the user to explicitly switch between vi modes whereas a (automatic) switches modesautomatically.

B.

i (insert) inserts text before the current cursor position whereas a (append) inserts text after the cursor.

C.

i (independent rows) starts every new line at the first character whereas a (aligned rows) keeps the indentation of the previous line.

D.

i (interrupt) temporarily suspends editing of a file to the background whereas a (abort) terminates editing.

Question 21

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.

Question 22

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

Question 23

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

Question 24

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.

Question 25

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

Question 26

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

Page: 1 / 18
Total 177 questions