Black Friday Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

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

Demo: 26 questions
Total 177 questions

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

Question 1

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.

Question 2

Which of the following commands will produce the following output?

Options:

A.

jobs

B.

proclist

C.

netstat

D.

ps

Question 3

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

Question 4

Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?

Options:

A.

ext2

B.

ext3

C.

ext4

D.

XFS

E.

VFAT

Question 5

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 6

How many fields are in a syntactically correct line of /etc/fstab?

Options:

A.

3

B.

4

C.

5

D.

6

E.

7

Question 7

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

Options:

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

Question 8

Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)

Options:

Question 9

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 10

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

Question 11

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 12

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

Question 13

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

Question 14

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

Question 15

Which command is used in a Linux environment to create a new directory? (Specify ONLY the command without any path or parameters.)

Options:

Question 16

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

Options:

Question 17

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.

Question 18

What is the default nice level when a process is started using the nice command?

Options:

A.

-10

B.

10

C.

20

D.

0

Question 19

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

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

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 22

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

Question 23

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

Question 24

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 25

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

Question 26

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

Demo: 26 questions
Total 177 questions