David OkOk
Quiz by , created more than 1 year ago

Linux Profesional Institute

5
0
0
David OkOk
Created by David OkOk about 1 year ago
Close

LPI 101-500

Question 1 of 30

1

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

Select one of the following:

  • XFS

  • VFAT

  • ext2

  • ext3

  • ext4

Explanation

Question 2 of 30

1

Which umask value ensures that new directories can be read, written and listed by their owning user, read and listed by their owning group and are not accessible at all for everyone else?

Select one of the following:

  • 0750

  • 0027

  • 0036

  • 7640

  • 0029

Explanation

Question 3 of 30

1

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?

Select one of the following:

  • tune2fs -d 200 /dev/sda1

  • tune2fs -i 200 /dev/sda1

  • tune2fs -c 200 /dev/sda1

  • tune2fs -n 200 /dev/sda1

  • tune2fs --days 200 /dev/sda1

Explanation

Question 4 of 30

1

Which is the default percentage of reserved space for the root user on new ext4 filesystems?

Select one of the following:

  • 10%

  • 3%

  • 15%

  • 0%

  • 5%

Explanation

Question 5 of 30

1

5.- Which of the following is true when a file system, which is neither listed in /etc/fstab nor known to system, is mounted manually?

Select one of the following:

  • Systemd ignores any manual mounts which are not done using the systemctl mount command

  • The command systemctl mountsync can be used to create a mount unit based on the existing mount

  • systemd automatically generates a mount unit and monitors the mount point without changing it

  • Unless a systemd mount unit is created, systemd unmounts the file system after a short period of time

  • systemctl unmount must be used to remove the mount because system opens a file descriptor on the mount point

Explanation

Question 6 of 30

1

6.- Which program updates the database that is used by the locate command? (Specify ONLY the command without any path or parameters).

Select one of the following:

  • updatedb

  • upgrade

Explanation

Question 7 of 30

1

7.- What does the command mount --bind do?

Select one of the following:

  • It makes the contents of one directory available in another directory

  • It mounts all available filesystems to the current directory

  • It mounts all user mountable filesystems to the user's home directory

  • It mounts all file systems listed in /etc/fstab which have the option userbind set

  • It permanently mounts a regular file to a directory

Explanation

Question 8 of 30

1

8.- Consider the following output from the command ls -i:

How would a new file named c.txt be created with the same inode number as a.txt (Inode 525385)?

Select one of the following:

  • ln -h a.txt c.txt

  • ln c.txt a.txt

  • ln a.txt c.txt

  • In -f c.txt a.txt

  • ln -i 525385 c.txt

Explanation

Question 9 of 30

1

Consider the following directory:
drwxrwxr-x 2 root sales 4096 Jan 1 15:21 sales
Which command ensures new files created within the directory sales are owned by the group sales? (Choose two.)

Select one or more of the following:

  • chmod g+s sales

  • setpol -R newgroup=sales sales

  • chgrp -p sales sales

  • chown --persistent *.sales sales

  • chmod 2775 sales

Explanation

Question 10 of 30

1

10.- In order to display all currently mounted filesystems, which of the following commands could be used? (Choose two.)

Select one or more of the following:

  • cat /proc/self/mounts

  • free

  • lsmounts

  • mount

  • cat /proc/filesystems

Explanation

Question 11 of 30

1

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

Select one of the following:

  • df

  • ht

Explanation

Question 12 of 30

1

12.- Which chown command changes the ownership to dave and the group to staff on a file named data.txt?

Select one of the following:

  • chown dave/staff data.txt

  • chown -u dave -g staff data.txt

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

  • chown dave+staff data.txt

  • chown dave:staff data.txt

Explanation

Question 13 of 30

1

13.- When considering the use of hard links, what are valid reasons not to use hard links?

Select one of the following:

  • Hard links are not available on all Linux systems because traditional filesystems, such as ext4, do not support them

  • Each hard link has individual ownership, permissions and ACLs which can lead to unintended disclosure of file content

  • Hard links are specific to one filesystem and cannot point to files on another filesystem

  • If users other than root should be able to create hard links, suln has to be installed and configured

  • When a hard linked file is changed, a copy of the file is created and consumes additional space

Explanation

Question 14 of 30

1

14.- In compliance with the FHS, in which of the directories are man pages found?

Select one of the following:

  • /opt/man/

  • /usr/doc/

  • /usr/share/man/

  • /var/pkg/man

  • /var/man/

Explanation

Question 15 of 30

1

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

Select one of the following:

  • cmdline

  • repeat

Explanation

Question 16 of 30

1

16.- What is the process ID number of the init process on a System V init based system?

Select one of the following:

  • -1

  • 0

  • 1

  • It is different with each reboot

  • It is set to the current run level

Explanation

Question 17 of 30

1

17.- Which daemon handles power management events on a Linux system?

Select one of the following:

  • acpid

  • batteryd

  • pwrmgntd

  • psd

  • inetd

Explanation

Question 18 of 30

1

18.- Which of the following statements are true about the boot sequence of a PC using a BIOS? (Choose two.

Select one or more of the following:

  • Some parts of the boot process can be configured from the BIOS

  • Linux does not require the assistance of the BIOS to boot a computer

  • The BIOS boot process starts only if secondary storage, such as the hard disk, is functional

  • The BIOS initiates the boot process after turning the computer on

  • The BIOS is started by loading hardware drivers from secondary storage, such as the hard disk

Explanation

Question 19 of 30

1

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

Select one or more of the following:

  • It can read and interpret partition tables

  • It can use and read certain file systems

  • It stores its entire configuration on the /boot/ partition

  • It is stored in a special area within the GPT metadata

  • It is loaded from a fixed boot disk position

Explanation

Question 20 of 30

1

20.- 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?

Select one of the following:

  • Using lsmod --remove --autoclean without specifying the name of a specific module

  • Using modinfo -k followed by the name of the offending module

  • Using modprobe -r followed by the name of the offending module

  • Adding a blacklist line including the name of the offending module to the file /etc/modprobe.d/blacklist.conf

  • Deleting the kernel module's directory from the file system and recompiling the kernel, including its modules

Explanation

Question 21 of 30

1

21.- When is the content of the kernel ring buffer reset? (Choose two.)

Select one or more of the following:

  • When the ring buffer is explicitly reset using the command dmesg --clear

  • When the ring buffer is read using dmesg without any additional parameters

  • When a configurable amount of time, 15 minutes by default, has passed

  • When the kernel loads a previously unloaded kernel module

  • When the system is shut down or rebooted

Explanation

Question 22 of 30

1

What is the first program the Linux kernel starts at boot time when using System V init?

Select one of the following:

  • /lib/init.so

  • /proc/sys/kernel/init

  • /etc/rc.d/rcinit

  • /sbin/init

  • /boot/init

Explanation

Question 23 of 30

1

23.- A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?

Select one of the following:

  • apt-get search /etc/debian_version

  • apt -r /etc/debian_version

  • find /etc/debian_version -dpkg

  • dpkg -S /etc/debian_version

  • apt-file /etc/debian_version

Explanation

Question 24 of 30

1

24.- What is contained on the EFI System Partition?

Select one of the following:

  • The Linux root file system

  • The first stage boot loader

  • The default swap space file

  • The Linux default shell binaries

  • The user home directories

Explanation

Question 25 of 30

1

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

Select one or more of the following:

  • ~/.lib64/

  • /usr/lib64/

  • /var/lib64/

  • /lib64/

  • /opt/lib64/

Explanation

Question 26 of 30

1

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

Select one or more of the following:

  • /boot/grub/stages/stage0

  • /boot/grub/i386-pc/lvm.mod

  • /boot/grub/fstab

  • /boot/grub/grub.cfg

  • /boot/grub/linux/vmlinuz

Explanation

Question 27 of 30

1

27.- Which of the following commands installs all packages with a name ending with the string foo?

Select one of the following:

  • zypper get '*foo'

  • zypper update 'foo?'

  • zypper force 'foo*'

  • zypper install '*foo'

  • zypper add '.*foo'

Explanation

Question 28 of 30

1

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

Select one or more of the following:

  • The partitioning scheme

  • The file system

  • The D-Bus Machine ID

  • The permissions of /root/

  • The SSH host keys

Explanation

Question 29 of 30

1

29.- Which of the following commands installs GRUB 2 into the master boot record on the third hard disk?

Select one of the following:

  • grub2 install /dev/sdc

  • grub-mkrescue /dev/sdc

  • grub-mbrinstall /dev/sdc

  • grub-setup /dev/sdc

  • grub-install /dev/sdc

Explanation

Question 30 of 30

1

30.- Which of the following partition types is used for Linux swap spaces when partitioning hard disk drives?

Select one of the following:

  • 7

  • 82

  • 83

  • 8e

  • fd

Explanation