Frage 1
Frage
1.- Which kernel parameter controls the console verbosity at boot (quiet vs verbose)?
Antworten
-
loglevel= or quiet
-
verbose=
-
console= only
-
debug=
Frage 2
Frage
2.- To view the system’s last reboot reason via systemd, which command helps?
Frage 3
Frage
3.- Which tool on Debian/Ubuntu lists kernel packages installed so you can match /lib/modules folders?
Antworten
-
dpkg -l 'linux-image*'
-
rpm -qa kernel
-
pacman -Q linux
-
apt-cache search linux
Frage 4
Frage
4.- Which systemd directive makes a unit start automatically at boot?
Antworten
-
systemctl enable <unit>
-
systemctl start <unit>
-
systemctl reserve <unit>
-
systemctl boot <unit>
Frage 5
Frage
5.- When troubleshooting a failed boot, which of these is the most useful first step?
Antworten
-
Examine bootloader config (/boot/grub/grub.cfg) and kernel params
-
Reinstall the OS immediately
-
Delete /boot contents and retry
-
Modify /etc/passwd
Frage 6
Frage
6.- Which command will list active targets and their dependencies?
Frage 7
Frage
7.- How do you instruct GRUB to boot a kernel with a different root device only for this boot?
Antworten
-
Edit kernel root= parameter from GRUB menu before boot
-
Change /etc/fstab permanently
-
Use grub-set-root after boot
-
Reinstall GRUB
Frage 8
Frage
8.- Which file may be used to blacklist an initramfs hook or module in dracut?
Antworten
-
/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)
Frage 9
Frage
9.- What command returns the current and previous runlevels on a SysV system?
Antworten
-
runlevel
-
who -r
-
Both A and B
-
systemctl runlevel
Frage 10
Frage
10.- Which is the safe sequence to shutdown the machine and power off using SysV utilities?
Frage 11
Frage
11.- Which command is used to list all partitions on all disks?
Antworten
-
fdisk -l
-
lsblk -f
-
blkid
-
df -h
Frage 12
Frage
12.- Which tool is used to create or modify GPT partition tables?
Frage 13
Frage
13.- Which command displays information about block devices in a tree structure?
Frage 14
Frage
14.- What is the maximum number of primary partitions allowed in an MBR disk?
Frage 15
Frage
15.- Which partition type is used to contain logical partitions in MBR?
Antworten
-
Swap partition
-
Extended partition
-
Primary partition
-
Boot partition
Frage 16
Frage
16.- Which utility displays filesystem UUIDs and types?
Frage 17
Frage
17.- What is the purpose of the mkswap command?
Frage 18
Frage
18.- Which command activates all swap areas listed in /etc/fstab?
Antworten
-
swapon -a
-
swapoff -a
-
systemctl enable swap
-
mount -a
Frage 19
Frage
19.- Which tool can resize partitions interactively on a running system?
Frage 20
Frage
20.- What command displays the total swap usage?
Antworten
-
df -h
-
swapon -s
-
top
-
lsblk
Frage 21
Frage
21.- Which LVM command creates a physical volume?
Antworten
-
vgcreate
-
pvcreate
-
lvcreate
-
lvextend
Frage 22
Frage
22.- Which file contains partition information for traditional systems?
Antworten
-
/etc/partitions
-
/proc/partitions
-
/etc/fstab
-
/boot/grub/grub.cfg
Frage 23
Frage
23.- Which command initializes a volume group in LVM?
Antworten
-
lvcreate
-
vgcreate
-
pvcreate
-
vgextend
Frage 24
Frage
24.- Which tool is used to create logical volumes?
Antworten
-
lvcreate
-
vgcreate
-
pvcreate
-
mkfs
Frage 25
Frage
25.- Which command extends an existing logical volume?
Antworten
-
lvextend
-
pvextend
-
vgextend
-
resize2fs
Frage 26
Frage
26.- Which file defines partitions mounted automatically at boot?
Antworten
-
/etc/partitions
-
/etc/fstab
-
/etc/mounts
-
/proc/mounts
Frage 27
Frage
27.- What is the function of vgextend?
Frage 28
Frage
28.- Which command displays all existing volume groups?
Antworten
-
lvdisplay
-
vgdisplay
-
pvdisplay
-
lvs
Frage 29
Frage
29.- What command is used to create a GPT partition table?
Frage 30
Frage
30.- Which tool is used to create a new filesystem on a partition?
Frage 31
Frage
31.- Which command can display filesystem usage and available space?
Frage 32
Frage
32.- What is the name of the metadata area in an LVM physical volume?
Antworten
-
PE (Physical Extent)
-
VG descriptor
-
PV header
-
LV header
Frage 33
Frage
33.- What is the smallest unit of allocation in LVM?
Antworten
-
Physical volume
-
Volume group
-
Physical extent
-
Logical volume
Frage 34
Frage
34.- Which tool displays UUIDs for swap and partitions?
Antworten
-
lsblk -f
-
blkid
-
cat /etc/fstab
-
df -T
Frage 35
Frage
35.- Which command creates a swap file of 1 GB size?
Frage 36
Frage
36.- Which command displays detailed information about logical volumes?
Antworten
-
lvdisplay
-
vgdisplay
-
pvdisplay
-
lvscan
Frage 37
Frage
37.- Which command creates a snapshot of a logical volume?
Antworten
-
lvcreate -s
-
vgcreate -s
-
pvcreate -s
-
lvextend -s
Frage 38
Frage
38.- What is the main purpose of an LVM snapshot?
Frage 39
Frage
39.- Which command removes a logical volume?
Antworten
-
lvdelete
-
lvremove
-
vgremove
-
pvremove
Frage 40
Frage
40.- To resize a filesystem after extending an LVM volume, which command is used for ext4 filesystems?
Antworten
-
resize2fs
-
xfs_growfs
-
fsck
-
mkfs.ext4
Frage 41
Frage
41.- What must be done before reducing a logical volume’s size?
Antworten
-
Run vgextend
-
Unmount the filesystem and shrink it first
-
Add more physical extents
-
Activate the volume group
Frage 42
Frage
42.- Which LVM command deactivates a volume group?
Antworten
-
vgdeactivate
-
vgchange -a n
-
vgstop
-
vgremove
Frage 43
Frage
43.- What is the default size unit for LVM extents?
Frage 44
Frage
44.- Which command creates a new swap area on an existing partition?
Antworten
-
mkfs.swap /dev/sdb2
-
mkswap /dev/sdb2
-
swapon /dev/sdb2
-
swapcreate /dev/sdb2
Frage 45
Frage
45.- How can you permanently enable a swap file?
Frage 46
Frage
46.- Which command shows all currently active swap areas?
Antworten
-
cat /proc/meminfo
-
swapon --show
-
free -m
-
lsblk
Frage 47
Frage
47.- Which filesystem type is used for Linux swap space?
Frage 48
Frage
48.- What happens when physical memory is exhausted and no swap is available?
Frage 49
Frage
49.- Which command converts an MBR disk to GPT safely (non-destructive)?
Antworten
-
gdisk
-
fdisk
-
parted mklabel
-
mkfs.gpt
Frage 50
Frage
50.- Which partition flag marks a partition as bootable in MBR?
Antworten
-
boot
-
active
-
bios_grub
-
uefi_boot
Frage 51
Frage
51.- How can you view partition table type (MBR or GPT)?
Antworten
-
cat /etc/fstab
-
parted /dev/sda print
-
lsblk -a
-
blkid
Frage 52
Frage
52.- Which tool is preferred for managing GPT disks interactively?
Frage 53
Frage
53.- What is the purpose of the /etc/lvm/backup/ directory?
Frage 54
Frage
54.- Which command shows the mapping between logical and physical extents?
Antworten
-
lvdisplay -m
-
vgdisplay -v
-
pvscan
-
lvscan
Frage 55
Frage
55.- Which LVM command removes a volume group?
Antworten
-
vgdelete
-
vgremove
-
lvremove
-
pvremove
Frage 56
Frage
56.- Which command initializes a disk as an LVM physical volume?
Antworten
-
lvcreate /dev/sdb
-
vgcreate /dev/sdb
-
pvcreate /dev/sdb
-
lvm /dev/sdb
Frage 57
Frage
47.- Which command lists all volume groups on the system?
Frage 58
Frage
58.- How can you identify all physical volumes currently present?
Antworten
-
vgdisplay
-
pvdisplay
-
lvdisplay
-
pvlist
Frage 59
Frage
49.- Which command enables you to label a partition manually?
Antworten
-
e2label
-
lsblk -L
-
fdisk -L
-
blkid -L
Frage 60
Frage
60.- Which command verifies the integrity of an ext4 filesystem?
Antworten
-
fsck.ext4
-
mkfs.ext4
-
resize2fs
-
tune2fs