Pregunta 1
Pregunta
1.- Which configuration file defines GRUB 2 menu entries?
Respuesta
-
/boot/grub/menu.lst
-
/etc/grub.d/40_custom
-
/boot/grub2/grub.cfg
-
/etc/default/grub.cfg
Pregunta 2
Pregunta
2.- Which command regenerates the GRUB 2 configuration file?
Respuesta
-
update-grub
-
grub2-mkconfig
-
grub-install
-
grub-rebuild
Pregunta 3
Pregunta
3.- What is the function of /etc/default/grub?
Pregunta 4
Pregunta
4.- Which command installs the GRUB 2 boot loader to a device?
Respuesta
-
grub2-install /dev/sda
-
update-grub /dev/sda
-
install-grub2 /dev/sda
-
bootctl install /dev/sda
Pregunta 5
Pregunta
5.- What is the role of the initrd or initramfs image?
Pregunta 6
Pregunta
6.- Where is the MBR located on a disk?
Pregunta 7
Pregunta
7.- What does the BIOS do before loading GRUB?
Pregunta 8
Pregunta
8.- How do you add a custom GRUB 2 menu entry?
Pregunta 9
Pregunta
9.- What command updates the bootloader configuration on Debian systems?
Respuesta
-
update-grub
-
grub2-install
-
dpkg-reconfigure grub
-
bootctl update
Pregunta 10
Pregunta
10.- Which GRUB 2 command line option lets you edit boot parameters temporarily?
Respuesta
-
Press e
-
Press c
-
Press d
-
Press Esc
Pregunta 11
Pregunta
11.- In GRUB 2, what does the set root=(hd0,1) command do?
Pregunta 12
Pregunta
12.- Which file lists all kernels installed on a Debian system?
Respuesta
-
/etc/kernel.conf
-
/boot/ directory
-
/etc/default/kernel
-
/usr/lib/modules
Pregunta 13
Pregunta
13.- What does the GRUB command linux /vmlinuz do?
Pregunta 14
Pregunta
14.- How can you restore GRUB 2 if it becomes corrupted?
Pregunta 15
Pregunta
15.- Which GRUB 2 command boots the system after manual setup?
Pregunta 16
Pregunta
16.- What is the default timeout variable in /etc/default/grub?
Respuesta
-
GRUB_WAIT
-
GRUB_TIMEOUT
-
GRUB_DELAY
-
BOOT_TIMEOUT
Pregunta 17
Pregunta
17.- Which command in GRUB’s shell lists available partitions?
Respuesta
-
ls
-
show devices
-
devices
-
partlist
Pregunta 18
Pregunta
18.- What GRUB 2 feature allows password protection of menu entries?
Respuesta
-
set secure
-
password_pbkdf2
-
encrypt_menu
-
auth on
Pregunta 19
Pregunta
19.- Which directory contains GRUB 2 module files (*.mod)?
Respuesta
-
/usr/lib/grub/
-
/boot/grub2/i386-pc/
-
/etc/grub.d/
-
/sbin/grub/
Pregunta 20
Pregunta
20.- What command shows the current runlevel?
Respuesta
-
runlevel
-
systemctl status
-
who -r
-
initctl list
Pregunta 21
Pregunta
21.- In systemd, which command lists available targets?
Pregunta 22
Pregunta
22.- Which GRUB 2 directive sets the default boot entry?
Respuesta
-
GRUB_DEFAULT
-
GRUB_BOOT
-
DEFAULT_ENTRY
-
GRUB_ENTRY
Pregunta 23
Pregunta
23.- In GRUB, what does initrd /initrd.img specify?
Pregunta 24
Pregunta
24.- What command lists the libraries required by a binary?
Respuesta
-
ldconfig
-
ldd
-
lslib
-
objdump
Pregunta 25
Pregunta
25.- Where are 64-bit libraries typically stored?
Respuesta
-
/usr/lib64
-
/usr/lib32
-
/lib
-
/usr/local/lib
Pregunta 26
Pregunta
26.- What does the /etc/ld.so.conf file specify?
Pregunta 27
Pregunta
27,. Which command updates the library cache after installing a new library?
Respuesta
-
ldconfig
-
update-lib
-
libcache
-
reload-libs
Pregunta 28
Pregunta
28.- What is the default library cache file used by the dynamic linker?
Respuesta
-
/etc/ld.so.cache
-
/usr/lib/cache
-
/etc/lib.conf
-
/var/lib/ld.cache
Pregunta 29
Pregunta
29.- Which environment variable defines additional library search paths?
Respuesta
-
LD_PATH
-
LD_LIBRARY_PATH
-
LIB_PATH
-
SHLIB_PATH
Pregunta 30
Pregunta
30.- Which file lists all directories known to ldconfig?
Respuesta
-
/etc/ld.so.conf.d/
-
/usr/lib/ldconfig.d/
-
/var/lib/lib.conf
-
/etc/lib.paths
Pregunta 31
Pregunta
31.- What does the linker use to find shared libraries?
Respuesta
-
Symbol tables
-
SONAME
-
Library manifest
-
Header files
Pregunta 32
Pregunta
32.- How do you display the SONAME of a shared library?
Respuesta
-
objdump -p libname.so
-
ldconfig -p
-
nm libname.so
-
strings libname.so
Pregunta 33
Pregunta
33.- What is the purpose of symbolic links like libc.so.6 → libc-2.31.so?
Pregunta 34
Pregunta
34.- What command finds out which libraries are currently loaded by a running process?
Respuesta
-
cat /proc/<pid>/maps
-
ps aux
-
ldd
-
ls /proc/<pid>/fd
Pregunta 35
Pregunta
35.- Which file controls global dynamic linker options?
Respuesta
-
/etc/ld.so.conf
-
/etc/ld.so.preload
-
/etc/ld.so.cache
-
/usr/lib/ld.so.conf
Pregunta 36
Pregunta
36.- What does the program loader /lib64/ld-linux-x86-64.so.2 do?
Pregunta 37
Pregunta
37.- Which tool can you use to inspect dependencies of a shared library?
Respuesta
-
ldd
-
readelf -d
-
lsmod
-
objcopy
Pregunta 38
Pregunta
38.- What file extension identifies shared libraries on Linux?
Pregunta 39
Pregunta
39.- What is the role of static libraries?
Pregunta 40
Pregunta
40.- Which option links a program statically using gcc?
Respuesta
-
gcc -static
-
gcc --link
-
gcc --no-shared
-
gcc -nostdlib
Pregunta 41
Pregunta
41.- What command lists all shared libraries currently cached?
Respuesta
-
ldconfig -p
-
ldd
-
ls /usr/lib
-
ldconfig --list
Pregunta 42
Pregunta
42.- How can you temporarily preload a library when running a program?
Pregunta 43
Pregunta
43.- What is the effect of removing /etc/ld.so.cache?
Pregunta 44
Pregunta
44.- What is contained in /lib directory?
Pregunta 45
Pregunta
45.- Which command displays the dynamic section of an ELF executable?
Respuesta
-
readelf -d
-
ldd
-
nm
-
objdump -x
Pregunta 46
Pregunta
46.- The .a library files are used for:
Respuesta
-
Dynamic linking
-
Static linking
-
Module loading
-
Shared memory
Pregunta 47
Pregunta
47.- What is a key advantage of dynamic linking?
Respuesta
-
Smaller binaries and easier updates
-
Faster startup time
-
Complete independence from libraries
-
Requires no runtime loader
Pregunta 48
Pregunta
48.- What command finds which executable would be run by default?
Respuesta
-
which
-
whereis
-
find
-
locate
Pregunta 49
Pregunta
49.- How can you determine whether a binary is statically or dynamically linked?
Respuesta
-
ldd binary
-
file binary
-
nm binary
-
strings binary
Pregunta 50
Pregunta
50.- What environment variable overrides the default dynamic linker?
Respuesta
-
LD_LIBRARY_PATH
-
LD_PRELOAD
-
LD_SO
-
LD_ASSUME_KERNEL
Pregunta 51
Pregunta
51.- Which command installs a .deb package directly?
Respuesta
-
dpkg -i
-
apt install
-
aptitude add
-
installpkg
Pregunta 52
Pregunta
52.- Which command lists all installed packages on a Debian system?
Respuesta
-
dpkg -l
-
apt list --repos
-
apt-get show
-
dpkg-query -a
Pregunta 53
Pregunta
53.- Which command removes a package but leaves configuration files?
Respuesta
-
dpkg -P
-
dpkg -r
-
apt purge
-
apt remove --purge
Pregunta 54
Pregunta
54.- What is the function of dpkg -P?
Pregunta 55
Pregunta
55.- Which command shows the files installed by a package?
Respuesta
-
dpkg -L package
-
dpkg -c package.deb
-
dpkg -S package
-
dpkg -p package
Pregunta 56
Pregunta
56.- Which file lists local APT repositories?
Respuesta
-
/etc/apt/sources.list
-
/etc/apt/repos.conf
-
/etc/apt/packages.conf
-
/var/lib/apt/cache
Pregunta 57
Pregunta
57.- What command updates the local APT package list?
Respuesta
-
apt update
-
apt upgrade
-
apt-cache
-
dpkg --refresh
Pregunta 58
Pregunta
58.- Which command upgrades all installed packages?
Respuesta
-
apt full-upgrade
-
apt-get install -u
-
apt upgrade
-
dpkg -U
Pregunta 59
Pregunta
59.- Which command installs a package and dependencies?
Respuesta
-
dpkg -i
-
apt install
-
apt-cache add
-
rpm -i
Pregunta 60
Pregunta
60.- What does the apt autoremove command do?