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?
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?
Questão 6
Questão
6.- Where is the MBR located on a disk?
Questão 7
Questão
7.- What does the BIOS do before loading GRUB?
Questão 8
Questão
8.- How do you add a custom GRUB 2 menu entry?
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?
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?
Questão 14
Questão
14.- How can you restore GRUB 2 if it becomes corrupted?
Questão 15
Questão
15.- Which GRUB 2 command boots the system after manual setup?
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?
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?
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?
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?
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?
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?
Questão 39
Questão
39.- What is the role of static libraries?
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?
Questão 43
Questão
43.- What is the effect of removing /etc/ld.so.cache?
Questão 44
Questão
44.- What is contained in /lib directory?
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?
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?