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 2 anos atrás
24
0

Resumo de Recurso

Questão 1

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

Questão 2

Questão
2.- Which command regenerates the GRUB 2 configuration file?
Responda
  • update-grub
  • grub2-mkconfig
  • grub-install
  • grub-rebuild

Questão 3

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

Questão 4

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

Questão 5

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

Questão 6

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

Questão 7

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

Questão 8

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

Questão 9

Questão
9.- What command updates the bootloader configuration on Debian systems?
Responda
  • update-grub
  • grub2-install
  • dpkg-reconfigure grub
  • bootctl update

Questão 10

Questão
10.- Which GRUB 2 command line option lets you edit boot parameters temporarily?
Responda
  • Press e
  • Press c
  • Press d
  • Press Esc

Questão 11

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

Questão 12

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

Questão 13

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

Questão 14

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

Questão 15

Questão
15.- Which GRUB 2 command boots the system after manual setup?
Responda
  • boot
  • run
  • exec
  • init

Questão 16

Questão
16.- What is the default timeout variable in /etc/default/grub?
Responda
  • GRUB_WAIT
  • GRUB_TIMEOUT
  • GRUB_DELAY
  • BOOT_TIMEOUT

Questão 17

Questão
17.- Which command in GRUB’s shell lists available partitions?
Responda
  • ls
  • show devices
  • devices
  • partlist

Questão 18

Questão
18.- What GRUB 2 feature allows password protection of menu entries?
Responda
  • set secure
  • password_pbkdf2
  • encrypt_menu
  • auth on

Questão 19

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

Questão 20

Questão
20.- What command shows the current runlevel?
Responda
  • runlevel
  • systemctl status
  • who -r
  • initctl list

Questão 21

Questão
21.- In systemd, which command lists available targets?
Responda
  • systemctl list-units --type=target
  • systemctl targets
  • systemctl list-targets
  • initctl list-targets

Questão 22

Questão
22.- Which GRUB 2 directive sets the default boot entry?
Responda
  • GRUB_DEFAULT
  • GRUB_BOOT
  • DEFAULT_ENTRY
  • GRUB_ENTRY

Questão 23

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

Questão 24

Questão
24.- What command lists the libraries required by a binary?
Responda
  • ldconfig
  • ldd
  • lslib
  • objdump

Questão 25

Questão
25.- Where are 64-bit libraries typically stored?
Responda
  • /usr/lib64
  • /usr/lib32
  • /lib
  • /usr/local/lib

Questão 26

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

Questão 27

Questão
27,. Which command updates the library cache after installing a new library?
Responda
  • ldconfig
  • update-lib
  • libcache
  • reload-libs

Questão 28

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

Questão 29

Questão
29.- Which environment variable defines additional library search paths?
Responda
  • LD_PATH
  • LD_LIBRARY_PATH
  • LIB_PATH
  • SHLIB_PATH

Questão 30

Questão
30.- Which file lists all directories known to ldconfig?
Responda
  • /etc/ld.so.conf.d/
  • /usr/lib/ldconfig.d/
  • /var/lib/lib.conf
  • /etc/lib.paths

Questão 31

Questão
31.- What does the linker use to find shared libraries?
Responda
  • Symbol tables
  • SONAME
  • Library manifest
  • Header files

Questão 32

Questão
32.- How do you display the SONAME of a shared library?
Responda
  • objdump -p libname.so
  • ldconfig -p
  • nm libname.so
  • strings libname.so

Questão 33

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

Questão 34

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

Questão 35

Questão
35.- Which file controls global dynamic linker options?
Responda
  • /etc/ld.so.conf
  • /etc/ld.so.preload
  • /etc/ld.so.cache
  • /usr/lib/ld.so.conf

Questão 36

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

Questão 37

Questão
37.- Which tool can you use to inspect dependencies of a shared library?
Responda
  • ldd
  • readelf -d
  • lsmod
  • objcopy

Questão 38

Questão
38.- What file extension identifies shared libraries on Linux?
Responda
  • .a
  • .lib
  • .so
  • .dll

Questão 39

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

Questão 40

Questão
40.- Which option links a program statically using gcc?
Responda
  • gcc -static
  • gcc --link
  • gcc --no-shared
  • gcc -nostdlib

Questão 41

Questão
41.- What command lists all shared libraries currently cached?
Responda
  • ldconfig -p
  • ldd
  • ls /usr/lib
  • ldconfig --list

Questão 42

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

Questão 43

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

Questão 44

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

Questão 45

Questão
45.- Which command displays the dynamic section of an ELF executable?
Responda
  • readelf -d
  • ldd
  • nm
  • objdump -x

Questão 46

Questão
46.- The .a library files are used for:
Responda
  • Dynamic linking
  • Static linking
  • Module loading
  • Shared memory

Questão 47

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

Questão 48

Questão
48.- What command finds which executable would be run by default?
Responda
  • which
  • whereis
  • find
  • locate

Questão 49

Questão
49.- How can you determine whether a binary is statically or dynamically linked?
Responda
  • ldd binary
  • file binary
  • nm binary
  • strings binary

Questão 50

Questão
50.- What environment variable overrides the default dynamic linker?
Responda
  • LD_LIBRARY_PATH
  • LD_PRELOAD
  • LD_SO
  • LD_ASSUME_KERNEL

Questão 51

Questão
51.- Which command installs a .deb package directly?
Responda
  • dpkg -i
  • apt install
  • aptitude add
  • installpkg

Questão 52

Questão
52.- Which command lists all installed packages on a Debian system?
Responda
  • dpkg -l
  • apt list --repos
  • apt-get show
  • dpkg-query -a

Questão 53

Questão
53.- Which command removes a package but leaves configuration files?
Responda
  • dpkg -P
  • dpkg -r
  • apt purge
  • apt remove --purge

Questão 54

Questão
54.- What is the function of dpkg -P?
Responda
  • Purges package completely
  • Prints package info
  • Prepares a package
  • Patches dependencies

Questão 55

Questão
55.- Which command shows the files installed by a package?
Responda
  • dpkg -L package
  • dpkg -c package.deb
  • dpkg -S package
  • dpkg -p package

Questão 56

Questão
56.- Which file lists local APT repositories?
Responda
  • /etc/apt/sources.list
  • /etc/apt/repos.conf
  • /etc/apt/packages.conf
  • /var/lib/apt/cache

Questão 57

Questão
57.- What command updates the local APT package list?
Responda
  • apt update
  • apt upgrade
  • apt-cache
  • dpkg --refresh

Questão 58

Questão
58.- Which command upgrades all installed packages?
Responda
  • apt full-upgrade
  • apt-get install -u
  • apt upgrade
  • dpkg -U

Questão 59

Questão
59.- Which command installs a package and dependencies?
Responda
  • dpkg -i
  • apt install
  • apt-cache add
  • rpm -i

Questão 60

Questão
60.- What does the apt autoremove command do?
Responda
  • Removes unnecessary packages installed as dependencies
  • Deletes all old kernels
  • Removes orphaned files
  • Cleans the APT cache

Semelhante

LPI 101-500
David OkOk