LPI 101-500

Descripción

LPI 101-500
David OkOk
Test por David OkOk, actualizado hace 12 meses
David OkOk
Creado por David OkOk hace más de 1 año
52
0

Resumen del Recurso

Pregunta 1

Pregunta
1.- Which kernel parameter controls the console verbosity at boot (quiet vs verbose)?
Respuesta
  • loglevel= or quiet
  • verbose=
  • console= only
  • debug=

Pregunta 2

Pregunta
2.- To view the system’s last reboot reason via systemd, which command helps?
Respuesta
  • last -x Reboot
  • journalctl -b -1
  • systemctl --failed
  • Both A and B (various info)

Pregunta 3

Pregunta
3.- Which tool on Debian/Ubuntu lists kernel packages installed so you can match /lib/modules folders?
Respuesta
  • dpkg -l 'linux-image*'
  • rpm -qa kernel
  • pacman -Q linux
  • apt-cache search linux

Pregunta 4

Pregunta
4.- Which systemd directive makes a unit start automatically at boot?
Respuesta
  • systemctl enable <unit>
  • systemctl start <unit>
  • systemctl reserve <unit>
  • systemctl boot <unit>

Pregunta 5

Pregunta
5.- When troubleshooting a failed boot, which of these is the most useful first step?
Respuesta
  • Examine bootloader config (/boot/grub/grub.cfg) and kernel params
  • Reinstall the OS immediately
  • Delete /boot contents and retry
  • Modify /etc/passwd

Pregunta 6

Pregunta
6.- Which command will list active targets and their dependencies?
Respuesta
  • systemctl list-dependencies --reverse <target>
  • systemctl show <target>
  • systemctl list-units
  • systemctl list-dependencies <target>

Pregunta 7

Pregunta
7.- How do you instruct GRUB to boot a kernel with a different root device only for this boot?
Respuesta
  • Edit kernel root= parameter from GRUB menu before boot
  • Change /etc/fstab permanently
  • Use grub-set-root after boot
  • Reinstall GRUB

Pregunta 8

Pregunta
8.- Which file may be used to blacklist an initramfs hook or module in dracut?
Respuesta
  • /etc/dracut.conf or /etc/dracut.conf.d/*.conf
  • /etc/modprobe.d/blacklist.conf only
  • /boot/dracut.blacklist
  • /etc/initramfs-tools/conf.d/ (dracut uses dracut.conf)

Pregunta 9

Pregunta
9.- What command returns the current and previous runlevels on a SysV system?
Respuesta
  • runlevel
  • who -r
  • Both A and B
  • systemctl runlevel

Pregunta 10

Pregunta
10.- Which is the safe sequence to shutdown the machine and power off using SysV utilities?
Respuesta
  • shutdown -h now
  • init 0
  • poweroff
  • Any of the above (they request a halt/poweroff coordinated by init/systemd)

Pregunta 11

Pregunta
11.- Which command is used to list all partitions on all disks?
Respuesta
  • fdisk -l
  • lsblk -f
  • blkid
  • df -h

Pregunta 12

Pregunta
12.- Which tool is used to create or modify GPT partition tables?
Respuesta
  • fdisk
  • parted
  • mkfs
  • lsblk

Pregunta 13

Pregunta
13.- Which command displays information about block devices in a tree structure?
Respuesta
  • df
  • lsblk
  • blkid
  • mount

Pregunta 14

Pregunta
14.- What is the maximum number of primary partitions allowed in an MBR disk?
Respuesta
  • 2
  • 4
  • 6
  • 8

Pregunta 15

Pregunta
15.- Which partition type is used to contain logical partitions in MBR?
Respuesta
  • Swap partition
  • Extended partition
  • Primary partition
  • Boot partition

Pregunta 16

Pregunta
16.- Which utility displays filesystem UUIDs and types?
Respuesta
  • blkid
  • df
  • ls
  • parted

Pregunta 17

Pregunta
17.- What is the purpose of the mkswap command?
Respuesta
  • Mounts swap partitions
  • Formats a partition as swap space
  • Activates swap memory
  • Deactivates swap memory

Pregunta 18

Pregunta
18.- Which command activates all swap areas listed in /etc/fstab?
Respuesta
  • swapon -a
  • swapoff -a
  • systemctl enable swap
  • mount -a

Pregunta 19

Pregunta
19.- Which tool can resize partitions interactively on a running system?
Respuesta
  • parted
  • fdisk
  • cfdisk
  • mkfs

Pregunta 20

Pregunta
20.- What command displays the total swap usage?
Respuesta
  • df -h
  • swapon -s
  • top
  • lsblk

Pregunta 21

Pregunta
21.- Which LVM command creates a physical volume?
Respuesta
  • vgcreate
  • pvcreate
  • lvcreate
  • lvextend

Pregunta 22

Pregunta
22.- Which file contains partition information for traditional systems?
Respuesta
  • /etc/partitions
  • /proc/partitions
  • /etc/fstab
  • /boot/grub/grub.cfg

Pregunta 23

Pregunta
23.- Which command initializes a volume group in LVM?
Respuesta
  • lvcreate
  • vgcreate
  • pvcreate
  • vgextend

Pregunta 24

Pregunta
24.- Which tool is used to create logical volumes?
Respuesta
  • lvcreate
  • vgcreate
  • pvcreate
  • mkfs

Pregunta 25

Pregunta
25.- Which command extends an existing logical volume?
Respuesta
  • lvextend
  • pvextend
  • vgextend
  • resize2fs

Pregunta 26

Pregunta
26.- Which file defines partitions mounted automatically at boot?
Respuesta
  • /etc/partitions
  • /etc/fstab
  • /etc/mounts
  • /proc/mounts

Pregunta 27

Pregunta
27.- What is the function of vgextend?
Respuesta
  • Add a new logical volume
  • Add a physical volume to a volume group
  • Extend a logical volume
  • Display volume groups

Pregunta 28

Pregunta
28.- Which command displays all existing volume groups?
Respuesta
  • lvdisplay
  • vgdisplay
  • pvdisplay
  • lvs

Pregunta 29

Pregunta
29.- What command is used to create a GPT partition table?
Respuesta
  • fdisk /dev/sda
  • parted /dev/sda mklabel gpt
  • mkfs.gpt /dev/sda
  • gdisk --gpt /dev/sda

Pregunta 30

Pregunta
30.- Which tool is used to create a new filesystem on a partition?
Respuesta
  • mkfs
  • fdisk
  • parted
  • mount

Pregunta 31

Pregunta
31.- Which command can display filesystem usage and available space?
Respuesta
  • du
  • df -h
  • lsblk
  • mount

Pregunta 32

Pregunta
32.- What is the name of the metadata area in an LVM physical volume?
Respuesta
  • PE (Physical Extent)
  • VG descriptor
  • PV header
  • LV header

Pregunta 33

Pregunta
33.- What is the smallest unit of allocation in LVM?
Respuesta
  • Physical volume
  • Volume group
  • Physical extent
  • Logical volume

Pregunta 34

Pregunta
34.- Which tool displays UUIDs for swap and partitions?
Respuesta
  • lsblk -f
  • blkid
  • cat /etc/fstab
  • df -T

Pregunta 35

Pregunta
35.- Which command creates a swap file of 1 GB size?
Respuesta
  • dd if=/dev/zero of=/swapfile bs=1M count=1024
  • mkswap /swapfile 1G
  • mkfile 1G /swapfile
  • swapon /swapfile

Pregunta 36

Pregunta
36.- Which command displays detailed information about logical volumes?
Respuesta
  • lvdisplay
  • vgdisplay
  • pvdisplay
  • lvscan

Pregunta 37

Pregunta
37.- Which command creates a snapshot of a logical volume?
Respuesta
  • lvcreate -s
  • vgcreate -s
  • pvcreate -s
  • lvextend -s

Pregunta 38

Pregunta
38.- What is the main purpose of an LVM snapshot?
Respuesta
  • To back up data consistently
  • To extend a logical volume
  • To resize a filesystem
  • To defragment storage

Pregunta 39

Pregunta
39.- Which command removes a logical volume?
Respuesta
  • lvdelete
  • lvremove
  • vgremove
  • pvremove

Pregunta 40

Pregunta
40.- To resize a filesystem after extending an LVM volume, which command is used for ext4 filesystems?
Respuesta
  • resize2fs
  • xfs_growfs
  • fsck
  • mkfs.ext4

Pregunta 41

Pregunta
41.- What must be done before reducing a logical volume’s size?
Respuesta
  • Run vgextend
  • Unmount the filesystem and shrink it first
  • Add more physical extents
  • Activate the volume group

Pregunta 42

Pregunta
42.- Which LVM command deactivates a volume group?
Respuesta
  • vgdeactivate
  • vgchange -a n
  • vgstop
  • vgremove

Pregunta 43

Pregunta
43.- What is the default size unit for LVM extents?
Respuesta
  • 2 MB
  • 4 MB
  • 8 MB
  • 16 MB

Pregunta 44

Pregunta
44.- Which command creates a new swap area on an existing partition?
Respuesta
  • mkfs.swap /dev/sdb2
  • mkswap /dev/sdb2
  • swapon /dev/sdb2
  • swapcreate /dev/sdb2

Pregunta 45

Pregunta
45.- How can you permanently enable a swap file?
Respuesta
  • Add it to /etc/fstab
  • Run swapon -a once
  • Modify /etc/swap.conf
  • Use systemctl enable swap

Pregunta 46

Pregunta
46.- Which command shows all currently active swap areas?
Respuesta
  • cat /proc/meminfo
  • swapon --show
  • free -m
  • lsblk

Pregunta 47

Pregunta
47.- Which filesystem type is used for Linux swap space?
Respuesta
  • ext4
  • swapfs
  • swap
  • none

Pregunta 48

Pregunta
48.- What happens when physical memory is exhausted and no swap is available?
Respuesta
  • The system slows down
  • The kernel kills processes (OOM killer)
  • The system reboots
  • Swap is created automatically

Pregunta 49

Pregunta
49.- Which command converts an MBR disk to GPT safely (non-destructive)?
Respuesta
  • gdisk
  • fdisk
  • parted mklabel
  • mkfs.gpt

Pregunta 50

Pregunta
50.- Which partition flag marks a partition as bootable in MBR?
Respuesta
  • boot
  • active
  • bios_grub
  • uefi_boot

Pregunta 51

Pregunta
51.- How can you view partition table type (MBR or GPT)?
Respuesta
  • cat /etc/fstab
  • parted /dev/sda print
  • lsblk -a
  • blkid

Pregunta 52

Pregunta
52.- Which tool is preferred for managing GPT disks interactively?
Respuesta
  • cfdisk
  • gdisk
  • fdisk
  • mkfs

Pregunta 53

Pregunta
53.- What is the purpose of the /etc/lvm/backup/ directory?
Respuesta
  • Stores volume group metadata backups
  • Contains LVM log files
  • Lists all mounted LVs
  • Holds filesystem backups

Pregunta 54

Pregunta
54.- Which command shows the mapping between logical and physical extents?
Respuesta
  • lvdisplay -m
  • vgdisplay -v
  • pvscan
  • lvscan

Pregunta 55

Pregunta
55.- Which LVM command removes a volume group?
Respuesta
  • vgdelete
  • vgremove
  • lvremove
  • pvremove

Pregunta 56

Pregunta
56.- Which command initializes a disk as an LVM physical volume?
Respuesta
  • lvcreate /dev/sdb
  • vgcreate /dev/sdb
  • pvcreate /dev/sdb
  • lvm /dev/sdb

Pregunta 57

Pregunta
47.- Which command lists all volume groups on the system?
Respuesta
  • vgs
  • pvs
  • lvs
  • vgscan

Pregunta 58

Pregunta
58.- How can you identify all physical volumes currently present?
Respuesta
  • vgdisplay
  • pvdisplay
  • lvdisplay
  • pvlist

Pregunta 59

Pregunta
49.- Which command enables you to label a partition manually?
Respuesta
  • e2label
  • lsblk -L
  • fdisk -L
  • blkid -L

Pregunta 60

Pregunta
60.- Which command verifies the integrity of an ext4 filesystem?
Respuesta
  • fsck.ext4
  • mkfs.ext4
  • resize2fs
  • tune2fs
Mostrar resumen completo Ocultar resumen completo

Similar

LPI 101-500
David OkOk