LPI 101-500

Descrição

LPI 101-500
David OkOk
Quiz por David OkOk, atualizado 12 meses atrás
David OkOk
Criado por David OkOk mais de 1 ano atrás
52
0

Resumo de Recurso

Questão 1

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

Questão 2

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

Questão 3

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

Questão 4

Questão
4.- Which systemd directive makes a unit start automatically at boot?
Responda
  • systemctl enable <unit>
  • systemctl start <unit>
  • systemctl reserve <unit>
  • systemctl boot <unit>

Questão 5

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

Questão 6

Questão
6.- Which command will list active targets and their dependencies?
Responda
  • systemctl list-dependencies --reverse <target>
  • systemctl show <target>
  • systemctl list-units
  • systemctl list-dependencies <target>

Questão 7

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

Questão 8

Questão
8.- Which file may be used to blacklist an initramfs hook or module in dracut?
Responda
  • /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)

Questão 9

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

Questão 10

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

Questão 11

Questão
11.- Which command is used to list all partitions on all disks?
Responda
  • fdisk -l
  • lsblk -f
  • blkid
  • df -h

Questão 12

Questão
12.- Which tool is used to create or modify GPT partition tables?
Responda
  • fdisk
  • parted
  • mkfs
  • lsblk

Questão 13

Questão
13.- Which command displays information about block devices in a tree structure?
Responda
  • df
  • lsblk
  • blkid
  • mount

Questão 14

Questão
14.- What is the maximum number of primary partitions allowed in an MBR disk?
Responda
  • 2
  • 4
  • 6
  • 8

Questão 15

Questão
15.- Which partition type is used to contain logical partitions in MBR?
Responda
  • Swap partition
  • Extended partition
  • Primary partition
  • Boot partition

Questão 16

Questão
16.- Which utility displays filesystem UUIDs and types?
Responda
  • blkid
  • df
  • ls
  • parted

Questão 17

Questão
17.- What is the purpose of the mkswap command?
Responda
  • Mounts swap partitions
  • Formats a partition as swap space
  • Activates swap memory
  • Deactivates swap memory

Questão 18

Questão
18.- Which command activates all swap areas listed in /etc/fstab?
Responda
  • swapon -a
  • swapoff -a
  • systemctl enable swap
  • mount -a

Questão 19

Questão
19.- Which tool can resize partitions interactively on a running system?
Responda
  • parted
  • fdisk
  • cfdisk
  • mkfs

Questão 20

Questão
20.- What command displays the total swap usage?
Responda
  • df -h
  • swapon -s
  • top
  • lsblk

Questão 21

Questão
21.- Which LVM command creates a physical volume?
Responda
  • vgcreate
  • pvcreate
  • lvcreate
  • lvextend

Questão 22

Questão
22.- Which file contains partition information for traditional systems?
Responda
  • /etc/partitions
  • /proc/partitions
  • /etc/fstab
  • /boot/grub/grub.cfg

Questão 23

Questão
23.- Which command initializes a volume group in LVM?
Responda
  • lvcreate
  • vgcreate
  • pvcreate
  • vgextend

Questão 24

Questão
24.- Which tool is used to create logical volumes?
Responda
  • lvcreate
  • vgcreate
  • pvcreate
  • mkfs

Questão 25

Questão
25.- Which command extends an existing logical volume?
Responda
  • lvextend
  • pvextend
  • vgextend
  • resize2fs

Questão 26

Questão
26.- Which file defines partitions mounted automatically at boot?
Responda
  • /etc/partitions
  • /etc/fstab
  • /etc/mounts
  • /proc/mounts

Questão 27

Questão
27.- What is the function of vgextend?
Responda
  • Add a new logical volume
  • Add a physical volume to a volume group
  • Extend a logical volume
  • Display volume groups

Questão 28

Questão
28.- Which command displays all existing volume groups?
Responda
  • lvdisplay
  • vgdisplay
  • pvdisplay
  • lvs

Questão 29

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

Questão 30

Questão
30.- Which tool is used to create a new filesystem on a partition?
Responda
  • mkfs
  • fdisk
  • parted
  • mount

Questão 31

Questão
31.- Which command can display filesystem usage and available space?
Responda
  • du
  • df -h
  • lsblk
  • mount

Questão 32

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

Questão 33

Questão
33.- What is the smallest unit of allocation in LVM?
Responda
  • Physical volume
  • Volume group
  • Physical extent
  • Logical volume

Questão 34

Questão
34.- Which tool displays UUIDs for swap and partitions?
Responda
  • lsblk -f
  • blkid
  • cat /etc/fstab
  • df -T

Questão 35

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

Questão 36

Questão
36.- Which command displays detailed information about logical volumes?
Responda
  • lvdisplay
  • vgdisplay
  • pvdisplay
  • lvscan

Questão 37

Questão
37.- Which command creates a snapshot of a logical volume?
Responda
  • lvcreate -s
  • vgcreate -s
  • pvcreate -s
  • lvextend -s

Questão 38

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

Questão 39

Questão
39.- Which command removes a logical volume?
Responda
  • lvdelete
  • lvremove
  • vgremove
  • pvremove

Questão 40

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

Questão 41

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

Questão 42

Questão
42.- Which LVM command deactivates a volume group?
Responda
  • vgdeactivate
  • vgchange -a n
  • vgstop
  • vgremove

Questão 43

Questão
43.- What is the default size unit for LVM extents?
Responda
  • 2 MB
  • 4 MB
  • 8 MB
  • 16 MB

Questão 44

Questão
44.- Which command creates a new swap area on an existing partition?
Responda
  • mkfs.swap /dev/sdb2
  • mkswap /dev/sdb2
  • swapon /dev/sdb2
  • swapcreate /dev/sdb2

Questão 45

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

Questão 46

Questão
46.- Which command shows all currently active swap areas?
Responda
  • cat /proc/meminfo
  • swapon --show
  • free -m
  • lsblk

Questão 47

Questão
47.- Which filesystem type is used for Linux swap space?
Responda
  • ext4
  • swapfs
  • swap
  • none

Questão 48

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

Questão 49

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

Questão 50

Questão
50.- Which partition flag marks a partition as bootable in MBR?
Responda
  • boot
  • active
  • bios_grub
  • uefi_boot

Questão 51

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

Questão 52

Questão
52.- Which tool is preferred for managing GPT disks interactively?
Responda
  • cfdisk
  • gdisk
  • fdisk
  • mkfs

Questão 53

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

Questão 54

Questão
54.- Which command shows the mapping between logical and physical extents?
Responda
  • lvdisplay -m
  • vgdisplay -v
  • pvscan
  • lvscan

Questão 55

Questão
55.- Which LVM command removes a volume group?
Responda
  • vgdelete
  • vgremove
  • lvremove
  • pvremove

Questão 56

Questão
56.- Which command initializes a disk as an LVM physical volume?
Responda
  • lvcreate /dev/sdb
  • vgcreate /dev/sdb
  • pvcreate /dev/sdb
  • lvm /dev/sdb

Questão 57

Questão
47.- Which command lists all volume groups on the system?
Responda
  • vgs
  • pvs
  • lvs
  • vgscan

Questão 58

Questão
58.- How can you identify all physical volumes currently present?
Responda
  • vgdisplay
  • pvdisplay
  • lvdisplay
  • pvlist

Questão 59

Questão
49.- Which command enables you to label a partition manually?
Responda
  • e2label
  • lsblk -L
  • fdisk -L
  • blkid -L

Questão 60

Questão
60.- Which command verifies the integrity of an ext4 filesystem?
Responda
  • fsck.ext4
  • mkfs.ext4
  • resize2fs
  • tune2fs

Semelhante

LPI 101-500
David OkOk