LPI 101-500

Beschreibung

LPI 101-500
David OkOk
Quiz von David OkOk, aktualisiert vor 12 Monate
David OkOk
Erstellt von David OkOk vor mehr als 2 Jahre
24
0

Zusammenfassung der Ressource

Frage 1

Frage
1.- Which configuration file defines GRUB 2 menu entries?
Antworten
  • /boot/grub/menu.lst
  • /etc/grub.d/40_custom
  • /boot/grub2/grub.cfg
  • /etc/default/grub.cfg

Frage 2

Frage
2.- Which command regenerates the GRUB 2 configuration file?
Antworten
  • update-grub
  • grub2-mkconfig
  • grub-install
  • grub-rebuild

Frage 3

Frage
3.- What is the function of /etc/default/grub?
Antworten
  • Stores kernel modules
  • Sets default GRUB 2 parameters
  • Lists boot menu entries
  • Defines BIOS boot order

Frage 4

Frage
4.- Which command installs the GRUB 2 boot loader to a device?
Antworten
  • grub2-install /dev/sda
  • update-grub /dev/sda
  • install-grub2 /dev/sda
  • bootctl install /dev/sda

Frage 5

Frage
5.- What is the role of the initrd or initramfs image?
Antworten
  • Loads kernel modules needed to mount the root filesystem
  • Stores BIOS configuration
  • Contains the GRUB menu
  • Holds user login data

Frage 6

Frage
6.- Where is the MBR located on a disk?
Antworten
  • First 512 bytes of the first partition
  • First 512 bytes of the disk
  • At the end of the disk
  • In /boot

Frage 7

Frage
7.- What does the BIOS do before loading GRUB?
Antworten
  • Initializes hardware and reads the MBR
  • Loads the Linux kernel directly
  • Executes /sbin/init
  • Checks /boot/grub.cfg

Frage 8

Frage
8.- How do you add a custom GRUB 2 menu entry?
Antworten
  • Edit /boot/grub2/grub.cfg directly
  • Add a script in /etc/grub.d/40_custom
  • Modify /etc/fstab
  • Use update-boot

Frage 9

Frage
9.- What command updates the bootloader configuration on Debian systems?
Antworten
  • update-grub
  • grub2-install
  • dpkg-reconfigure grub
  • bootctl update

Frage 10

Frage
10.- Which GRUB 2 command line option lets you edit boot parameters temporarily?
Antworten
  • Press e
  • Press c
  • Press d
  • Press Esc

Frage 11

Frage
11.- In GRUB 2, what does the set root=(hd0,1) command do?
Antworten
  • Mounts the root filesystem
  • Specifies which partition GRUB uses to load files
  • Starts the kernel
  • Loads the MBR

Frage 12

Frage
12.- Which file lists all kernels installed on a Debian system?
Antworten
  • /etc/kernel.conf
  • /boot/ directory
  • /etc/default/kernel
  • /usr/lib/modules

Frage 13

Frage
13.- What does the GRUB command linux /vmlinuz do?
Antworten
  • Loads kernel image into memory
  • Loads GRUB modules
  • Mounts root filesystem
  • Starts init process

Frage 14

Frage
14.- How can you restore GRUB 2 if it becomes corrupted?
Antworten
  • Boot from live media and run grub2-install + grub2-mkconfig
  • Reinstall Linux
  • Run init 6
  • Format /boot

Frage 15

Frage
15.- Which GRUB 2 command boots the system after manual setup?
Antworten
  • boot
  • run
  • exec
  • init

Frage 16

Frage
16.- What is the default timeout variable in /etc/default/grub?
Antworten
  • GRUB_WAIT
  • GRUB_TIMEOUT
  • GRUB_DELAY
  • BOOT_TIMEOUT

Frage 17

Frage
17.- Which command in GRUB’s shell lists available partitions?
Antworten
  • ls
  • show devices
  • devices
  • partlist

Frage 18

Frage
18.- What GRUB 2 feature allows password protection of menu entries?
Antworten
  • set secure
  • password_pbkdf2
  • encrypt_menu
  • auth on

Frage 19

Frage
19.- Which directory contains GRUB 2 module files (*.mod)?
Antworten
  • /usr/lib/grub/
  • /boot/grub2/i386-pc/
  • /etc/grub.d/
  • /sbin/grub/

Frage 20

Frage
20.- What command shows the current runlevel?
Antworten
  • runlevel
  • systemctl status
  • who -r
  • initctl list

Frage 21

Frage
21.- In systemd, which command lists available targets?
Antworten
  • systemctl list-units --type=target
  • systemctl targets
  • systemctl list-targets
  • initctl list-targets

Frage 22

Frage
22.- Which GRUB 2 directive sets the default boot entry?
Antworten
  • GRUB_DEFAULT
  • GRUB_BOOT
  • DEFAULT_ENTRY
  • GRUB_ENTRY

Frage 23

Frage
23.- In GRUB, what does initrd /initrd.img specify?
Antworten
  • The root filesystem
  • The initial RAM disk image
  • The boot partition
  • The kernel version

Frage 24

Frage
24.- What command lists the libraries required by a binary?
Antworten
  • ldconfig
  • ldd
  • lslib
  • objdump

Frage 25

Frage
25.- Where are 64-bit libraries typically stored?
Antworten
  • /usr/lib64
  • /usr/lib32
  • /lib
  • /usr/local/lib

Frage 26

Frage
26.- What does the /etc/ld.so.conf file specify?
Antworten
  • Kernel module paths
  • Extra directories for shared libraries
  • PATH variable
  • Default runlevel

Frage 27

Frage
27,. Which command updates the library cache after installing a new library?
Antworten
  • ldconfig
  • update-lib
  • libcache
  • reload-libs

Frage 28

Frage
28.- What is the default library cache file used by the dynamic linker?
Antworten
  • /etc/ld.so.cache
  • /usr/lib/cache
  • /etc/lib.conf
  • /var/lib/ld.cache

Frage 29

Frage
29.- Which environment variable defines additional library search paths?
Antworten
  • LD_PATH
  • LD_LIBRARY_PATH
  • LIB_PATH
  • SHLIB_PATH

Frage 30

Frage
30.- Which file lists all directories known to ldconfig?
Antworten
  • /etc/ld.so.conf.d/
  • /usr/lib/ldconfig.d/
  • /var/lib/lib.conf
  • /etc/lib.paths

Frage 31

Frage
31.- What does the linker use to find shared libraries?
Antworten
  • Symbol tables
  • SONAME
  • Library manifest
  • Header files

Frage 32

Frage
32.- How do you display the SONAME of a shared library?
Antworten
  • objdump -p libname.so
  • ldconfig -p
  • nm libname.so
  • strings libname.so

Frage 33

Frage
33.- What is the purpose of symbolic links like libc.so.6 → libc-2.31.so?
Antworten
  • Provide backward compatibility for linker resolution
  • Save disk space
  • Allow kernel modules to link
  • Compress libraries

Frage 34

Frage
34.- What command finds out which libraries are currently loaded by a running process?
Antworten
  • cat /proc/<pid>/maps
  • ps aux
  • ldd
  • ls /proc/<pid>/fd

Frage 35

Frage
35.- Which file controls global dynamic linker options?
Antworten
  • /etc/ld.so.conf
  • /etc/ld.so.preload
  • /etc/ld.so.cache
  • /usr/lib/ld.so.conf

Frage 36

Frage
36.- What does the program loader /lib64/ld-linux-x86-64.so.2 do?
Antworten
  • Loads and links dynamic executables at runtime
  • Compiles C programs
  • Loads kernel modules
  • Runs shell scripts

Frage 37

Frage
37.- Which tool can you use to inspect dependencies of a shared library?
Antworten
  • ldd
  • readelf -d
  • lsmod
  • objcopy

Frage 38

Frage
38.- What file extension identifies shared libraries on Linux?
Antworten
  • .a
  • .lib
  • .so
  • .dll

Frage 39

Frage
39.- What is the role of static libraries?
Antworten
  • Linked into programs at compile time
  • Loaded at runtime
  • Used by kernel only
  • Managed by ldconfig

Frage 40

Frage
40.- Which option links a program statically using gcc?
Antworten
  • gcc -static
  • gcc --link
  • gcc --no-shared
  • gcc -nostdlib

Frage 41

Frage
41.- What command lists all shared libraries currently cached?
Antworten
  • ldconfig -p
  • ldd
  • ls /usr/lib
  • ldconfig --list

Frage 42

Frage
42.- How can you temporarily preload a library when running a program?
Antworten
  • LD_PRELOAD=/path/lib.so ./program
  • export LIB_PRELOAD
  • ldconfig --load
  • gcc -l preload

Frage 43

Frage
43.- What is the effect of removing /etc/ld.so.cache?
Antworten
  • No libraries will be found until ldconfig runs
  • Libraries load faster
  • System won’t boot
  • Kernel panics

Frage 44

Frage
44.- What is contained in /lib directory?
Antworten
  • Essential shared libraries needed for boot and basic commands
  • User libraries
  • Optional modules
  • Temporary files

Frage 45

Frage
45.- Which command displays the dynamic section of an ELF executable?
Antworten
  • readelf -d
  • ldd
  • nm
  • objdump -x

Frage 46

Frage
46.- The .a library files are used for:
Antworten
  • Dynamic linking
  • Static linking
  • Module loading
  • Shared memory

Frage 47

Frage
47.- What is a key advantage of dynamic linking?
Antworten
  • Smaller binaries and easier updates
  • Faster startup time
  • Complete independence from libraries
  • Requires no runtime loader

Frage 48

Frage
48.- What command finds which executable would be run by default?
Antworten
  • which
  • whereis
  • find
  • locate

Frage 49

Frage
49.- How can you determine whether a binary is statically or dynamically linked?
Antworten
  • ldd binary
  • file binary
  • nm binary
  • strings binary

Frage 50

Frage
50.- What environment variable overrides the default dynamic linker?
Antworten
  • LD_LIBRARY_PATH
  • LD_PRELOAD
  • LD_SO
  • LD_ASSUME_KERNEL

Frage 51

Frage
51.- Which command installs a .deb package directly?
Antworten
  • dpkg -i
  • apt install
  • aptitude add
  • installpkg

Frage 52

Frage
52.- Which command lists all installed packages on a Debian system?
Antworten
  • dpkg -l
  • apt list --repos
  • apt-get show
  • dpkg-query -a

Frage 53

Frage
53.- Which command removes a package but leaves configuration files?
Antworten
  • dpkg -P
  • dpkg -r
  • apt purge
  • apt remove --purge

Frage 54

Frage
54.- What is the function of dpkg -P?
Antworten
  • Purges package completely
  • Prints package info
  • Prepares a package
  • Patches dependencies

Frage 55

Frage
55.- Which command shows the files installed by a package?
Antworten
  • dpkg -L package
  • dpkg -c package.deb
  • dpkg -S package
  • dpkg -p package

Frage 56

Frage
56.- Which file lists local APT repositories?
Antworten
  • /etc/apt/sources.list
  • /etc/apt/repos.conf
  • /etc/apt/packages.conf
  • /var/lib/apt/cache

Frage 57

Frage
57.- What command updates the local APT package list?
Antworten
  • apt update
  • apt upgrade
  • apt-cache
  • dpkg --refresh

Frage 58

Frage
58.- Which command upgrades all installed packages?
Antworten
  • apt full-upgrade
  • apt-get install -u
  • apt upgrade
  • dpkg -U

Frage 59

Frage
59.- Which command installs a package and dependencies?
Antworten
  • dpkg -i
  • apt install
  • apt-cache add
  • rpm -i

Frage 60

Frage
60.- What does the apt autoremove command do?
Antworten
  • Removes unnecessary packages installed as dependencies
  • Deletes all old kernels
  • Removes orphaned files
  • Cleans the APT cache
Zusammenfassung anzeigen Zusammenfassung ausblenden

ähnlicher Inhalt

LPI 101-500
David OkOk