Massive Summer Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: netdisc

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

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

Options:

Question 2

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 3

Which umask value will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------) for directories? (Specify only the numerical umask value.)

Options:

Question 4

Which command is used to create and initialize the files used to store quota information? (Specify ONLY the command without any path or parameters.)

Options:

Question 5

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

Options:

Question 6

Which permissions and ownership should the file /etc/passwd have?

Options:

A.

-rw-------1 rootroot531 Jun 5 22:45 /etc/passwd

B.

-rw-r--r--1 rootroot531 Jun 5 22:45 /etc/passwd

C.

-rw-r--r--1 11531 Jun 5 22:45 /etc/passwd

D.

-rw-------1 11531 Jun 5 22:45 /etc/passwd

Question 7

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

Question 8

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 9

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 10

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

Question 11

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 12

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"

Question 13

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

Options:

Question 14

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 15

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

Options:

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

Question 16

Which of the following commands will reduce all consecutive spaces down to a single space?

Options:

A.

tr '\s' ' ' < a.txt > b.txt

B.

tr -c ' ' < a.txt > b.txt

C.

tr -d ' ' < a.txt > b.txt

D.

tr -r ' ' '\n' < a.txt > b.txt

E.

tr -s ' ' < a.txt > b.txt

Question 17

When given the following command line.

echo "foo bar" | tee bar | cat

Which of the following output is created?

Options:

A.

cat

B.

foo bar

C.

tee bar

D.

bar

E.

foo

Question 18

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

Question 19

Which of the following commands can be used to create a USB storage media from a disk image?

Options:

A.

gdisk

B.

dd

C.

cc

D.

fdisk

E.

mount

Question 20

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.

&<

Question 21

In the vi editor, which of the following commands will copy the current line into the vi buffer?

Options:

A.

c

B.

cc

C.

1c

D.

yy

E.

1y

Question 22

Which command will disable swapping on a device? (Specify ONLY the command without any path or parameters.)

Options:

Question 23

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

Options:

A.

mkcache

B.

soconfig

C.

mkldconfig

D.

lddconfig

E.

ldconfig

Question 24

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 25

What is the name of the main configuration file for GNU GRUB? (Specify the file name only without any path.)

Options:

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?

Options:

A.

hidemenu

B.

splash

C.

timeout

D.

showmenu

Demo: 26 questions
Total 177 questions