LPI 101-500

Descripción

Linux Profesional Institute
David OkOk
Test por David OkOk, actualizado hace 12 meses
David OkOk
Creado por David OkOk hace alrededor de 2 años
25
0

Resumen del Recurso

Pregunta 1

Pregunta
Which type of file system is created by mkfs when it is executed with the block device name only and without any additional parameters?
Respuesta
  • XFS
  • VFAT
  • ext2
  • ext3
  • ext4

Pregunta 2

Pregunta
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?
Respuesta
  • 0750
  • 0027
  • 0036
  • 7640
  • 0029

Pregunta 3

Pregunta
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?
Respuesta
  • 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

Pregunta 4

Pregunta
Which is the default percentage of reserved space for the root user on new ext4 filesystems?
Respuesta
  • 10%
  • 3%
  • 15%
  • 0%
  • 5%

Pregunta 5

Pregunta
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?
Respuesta
  • 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

Pregunta 6

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

Pregunta 7

Pregunta
7.- What does the command mount --bind do?
Respuesta
  • 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

Pregunta 8

Pregunta
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)?
Respuesta
  • 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

Pregunta 9

Pregunta
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.)
Respuesta
  • chmod g+s sales
  • setpol -R newgroup=sales sales
  • chgrp -p sales sales
  • chown --persistent *.sales sales
  • chmod 2775 sales

Pregunta 10

Pregunta
10.- In order to display all currently mounted filesystems, which of the following commands could be used? (Choose two.)
Respuesta
  • cat /proc/self/mounts
  • free
  • lsmounts
  • mount
  • cat /proc/filesystems

Pregunta 11

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

Pregunta 12

Pregunta
12.- Which chown command changes the ownership to dave and the group to staff on a file named data.txt?
Respuesta
  • 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

Pregunta 13

Pregunta
13.- When considering the use of hard links, what are valid reasons not to use hard links?
Respuesta
  • 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

Pregunta 14

Pregunta
14.- In compliance with the FHS, in which of the directories are man pages found?
Respuesta
  • /opt/man/
  • /usr/doc/
  • /usr/share/man/
  • /var/pkg/man
  • /var/man/

Pregunta 15

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

Pregunta 16

Pregunta
16.- What is the process ID number of the init process on a System V init based system?
Respuesta
  • -1
  • 0
  • 1
  • It is different with each reboot
  • It is set to the current run level

Pregunta 17

Pregunta
17.- Which daemon handles power management events on a Linux system?
Respuesta
  • acpid
  • batteryd
  • pwrmgntd
  • psd
  • inetd

Pregunta 18

Pregunta
18.- Which of the following statements are true about the boot sequence of a PC using a BIOS? (Choose two.
Respuesta
  • 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

Pregunta 19

Pregunta
19.- What is true regarding UEFI firmware? (Choose two.)
Respuesta
  • 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

Pregunta 20

Pregunta
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?
Respuesta
  • 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

Pregunta 21

Pregunta
21.- When is the content of the kernel ring buffer reset? (Choose two.)
Respuesta
  • 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

Pregunta 22

Pregunta
What is the first program the Linux kernel starts at boot time when using System V init?
Respuesta
  • /lib/init.so
  • /proc/sys/kernel/init
  • /etc/rc.d/rcinit
  • /sbin/init
  • /boot/init

Pregunta 23

Pregunta
23.- A Debian package creates several files during its installation. Which of the following commands searches for packages owning the file /etc/debian_version?
Respuesta
  • 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

Pregunta 24

Pregunta
24.- What is contained on the EFI System Partition?
Respuesta
  • The Linux root file system
  • The first stage boot loader
  • The default swap space file
  • The Linux default shell binaries
  • The user home directories

Pregunta 25

Pregunta
25.- Which of the following directories on a 64 bit Linux system typically contain shared libraries? (Choose two.)
Respuesta
  • ~/.lib64/
  • /usr/lib64/
  • /var/lib64/
  • /lib64/
  • /opt/lib64/

Pregunta 26

Pregunta
26.- Which of the following files exist in a standard GRUB 2 installation? (Choose two.)
Respuesta
  • /boot/grub/stages/stage0
  • /boot/grub/i386-pc/lvm.mod
  • /boot/grub/fstab
  • /boot/grub/grub.cfg
  • /boot/grub/linux/vmlinuz

Pregunta 27

Pregunta
27.- Which of the following commands installs all packages with a name ending with the string foo?
Respuesta
  • zypper get '*foo'
  • zypper update 'foo?'
  • zypper force 'foo*'
  • zypper install '*foo'
  • zypper add '.*foo'

Pregunta 28

Pregunta
Which of the following properties of a Linux system should be changed when a virtual machine is cloned? (Choose two.)
Respuesta
  • The partitioning scheme
  • The file system
  • The D-Bus Machine ID
  • The permissions of /root/
  • The SSH host keys

Pregunta 29

Pregunta
29.- Which of the following commands installs GRUB 2 into the master boot record on the third hard disk?
Respuesta
  • grub2 install /dev/sdc
  • grub-mkrescue /dev/sdc
  • grub-mbrinstall /dev/sdc
  • grub-setup /dev/sdc
  • grub-install /dev/sdc

Pregunta 30

Pregunta
30.- Which of the following partition types is used for Linux swap spaces when partitioning hard disk drives?
Respuesta
  • 7
  • 82
  • 83
  • 8e
  • fd

Pregunta 31

Pregunta
31 Which command shows kernel ring buffer messages produced during boot and runtime?
Respuesta
  • journalctl -b
  • dmesg
  • syslog
  • bootctl

Pregunta 32

Pregunta
32.- Which directory exposes kernel and system information as a pseudo-filesystem?
Respuesta
  • /proc
  • /boot
  • /var
  • /opt

Pregunta 33

Pregunta
33.- Which command lists currently loaded kernel modules?
Respuesta
  • depmod
  • modinfo
  • insmod
  • lsmod

Pregunta 34

Pregunta
34.- To load a kernel module at runtime, which command is used?
Respuesta
  • modprobe <module>
  • insmod -r <module>
  • rmmod <module>
  • depmod <module>

Pregunta 35

Pregunta
35.- Where are modprobe configuration files typically stored for blacklisting modules?
Respuesta
  • /etc/modprobe.d/
  • /etc/modules-load.d/
  • /usr/lib/modprobe.d/
  • /boot/modprobe/

Pregunta 36

Pregunta
36.- Which file shows the kernel version currently running?
Respuesta
  • /etc/os-release
  • /proc/version
  • /boot/grub/grub.cfg
  • /var/log/messages

Pregunta 37

Pregunta
37.- Which command updates module dependency and map files?
Respuesta
  • depmod
  • modprobe -r
  • modinfo
  • lsmod

Pregunta 38

Pregunta
38.- Which tool displays PCI devices and vendor/product IDs?
Respuesta
  • lsusb
  • lspci
  • lsblk
  • hwinfo

Pregunta 39

Pregunta
39.- Which pseudo-file contains the list of CPU info?
Respuesta
  • /proc/uptime
  • /proc/cpuinfo
  • /proc/meminfo
  • /proc/stat

Pregunta 40

Pregunta
40.- Where is the kernel image usually stored on a Linux system?
Respuesta
  • /bin/vmlinuz
  • /boot/
  • /lib/modules/
  • /usr/src/

Pregunta 41

Pregunta
41.- What does UEFI system firmware store boot entries in?
Respuesta
  • MBR boot record
  • NVRAM
  • /etc/fstab
  • /boot/grub/grub.cfg

Pregunta 42

Pregunta
42.- Which utility shows and manipulates UEFI boot entries?
Respuesta
  • grub-install
  • efibootmgr
  • bootctl
  • systemctl

Pregunta 43

Pregunta
43.- In MBR partitioning, where is the boot code located?
Respuesta
  • GPT header
  • First sector (MBR)
  • /boot/efi
  • /etc/grub.d/

Pregunta 44

Pregunta
44.- What is the purpose of an initramfs/initrd?
Respuesta
  • Replace the kernel
  • Provide initial userspace before root FS mounts
  • Store GRUB configuration
  • Manage user accounts during boot

Pregunta 45

Pregunta
45.- Which command regenerates an initramfs on Debian/Ubuntu?
Respuesta
  • mkinitrd
  • update-initramfs -u
  • dracut --force
  • mkinitcpio -p linux

Pregunta 46

Pregunta
46.-On systems using dracut, which command rebuilds the initramfs?
Respuesta
  • update-initramfs
  • dracut --force
  • mkinitramfs
  • genkernel

Pregunta 47

Pregunta
47.- Which GRUB2 file is automatically generated and should not be edited directly?
Respuesta
  • /etc/default/grub
  • /boot/grub/grub.cfg
  • /etc/grub.d/40_custom
  • /usr/lib/grub/menu.lst

Pregunta 48

Pregunta
48.- Which file configures default GRUB kernel parameters?
Respuesta
  • /boot/grub/grub.cfg
  • /etc/default/grub
  • /etc/grub.d/
  • /etc/grub.conf

Pregunta 49

Pregunta
49.- Which command regenerates GRUB configuration (on Debian/Ubuntu)?
Respuesta
  • grub-install
  • grub-mkconfig -o /boot/grub/grub.cfg
  • update-grub
  • Both B and C

Pregunta 50

Pregunta
50.- What does grub-install do?
Respuesta
  • Create /boot/grub/grub.cfg
  • Install GRUB bootloader to disk/EFI
  • Generate initramfs
  • Update kernel parameters

Pregunta 51

Pregunta
51.- Which kernel parameter passes options to init (PID 1) or init system?
Respuesta
  • root=
  • ro
  • init=
  • quiet

Pregunta 52

Pregunta
52.- To boot into single-user mode with systemd you can append which kernel parameter?
Respuesta
  • single
  • systemd.unit=rescue.target
  • init=/bin/bash
  • runlevel=1

Pregunta 53

Pregunta
53.- Which target is analogous to SysV runlevel 3 (multi-user, non-graphical) in systemd?
Respuesta
  • graphical.target
  • multi-user.target
  • rescue.target
  • default.target

Pregunta 54

Pregunta
54.- How do you check the default systemd target?
Respuesta
  • systemctl get-default
  • systemctl default
  • systemctl status default.target
  • systemctl list-unit-files

Pregunta 55

Pregunta
55.- Which command sets the default systemd target to graphical?
Respuesta
  • systemctl isolate graphical.target
  • systemctl set-default graphical.target
  • systemctl enable graphical.service
  • systemctl start graphical.target

Pregunta 56

Pregunta
56.- What does systemctl isolate rescue.target do?
Respuesta
  • Permanently sets rescue.target as default
  • Immediately switches to rescue.target (stops other units)
  • Reboots into rescue mode on next boot
  • Enables rescue.service at boot

Pregunta 57

Pregunta
57.- Which SysV file historically defined runlevels?
Respuesta
  • /etc/systemd/system/default.target
  • /etc/inittab
  • /etc/rc.local
  • /proc/runlevel

Pregunta 58

Pregunta
58.- In legacy SysV, which runlevel is used for system halt/poweroff?
Respuesta
  • 1
  • 3
  • 0
  • 6

Pregunta 59

Pregunta
59.- Which command in SysV init changes the current runlevel?
Respuesta
  • systemctl isolate
  • telinit
  • runlevel
  • initctl

Pregunta 60

Pregunta
60.- What file lists kernel command line at runtime?
Respuesta
  • /proc/cmdline
  • /etc/default/grub
  • /boot/grub/grub.cfg
  • /etc/grub.d/
Mostrar resumen completo Ocultar resumen completo

Similar

LPI 101-500
David OkOk
LPI 101-500
David OkOk