Curated

System Management

0 votes

Try a few cards

Card 1 of 10

All cards206

  1. Which file is the main GRUB 2 configuration file on a Linux system that uses BIOS?

    /boot/grub2/grub.cfg (or /boot/grub/grub.cfg on Debian-based systems). It is generated by grub2-mkconfig from /etc/default/grub and the scripts in /etc/grub.d/, so it should not be edited by hand.

  2. Which FHS directory holds variable data such as logs, spool files, and caches?

    /var stores data that changes during normal operation, such as logs in /var/log and mail spools. /etc holds static configuration files, not variable data.

  3. Which CPU architecture is an open-standard RISC instruction set that requires no licensing fees?

    RISC-V is an open-standard, royalty-free RISC instruction set. AArch64 is also RISC but is Arm's 64-bit architecture, licensed by Arm.

  4. Because Ubuntu is built on Debian and ships its software as .deb packages, it is classified as a ___-based distribution.

    dpkg

  5. Which GUI component presents the graphical login screen and starts the user's desktop session?

    The display manager (for example GDM, SDDM, or LightDM). It authenticates the user and then launches the session, whereas a window manager only controls how windows are drawn and arranged afterward.

  6. Which licensing principle requires derivative works to be distributed under the same license terms as the original?

    Copyleft. The GNU General Public License (GPL) is the best-known example, so modified GPL code must also be released under the GPL when distributed.

  7. Which command loads a kernel module and automatically resolves and loads its dependencies?

    modprobe loads the named module along with any modules it depends on, using the dependency data built by depmod. By contrast, insmod loads only the exact .ko file you give it and fails if dependencies are missing.

  8. Which command lists the devices attached to the system's PCI buses, such as network and graphics controllers?

    lspci lists PCI bus devices, including network adapters and graphics cards. lsusb is the neighbouring tool, but it lists only USB buses and the devices attached to them.

  9. What is an embedded system?

    A dedicated computing device built into a larger product to perform a specific function, such as a router, smart TV, or industrial controller. Linux is widely used on these devices because it is open source, scalable, and can be trimmed down to fit limited CPU, memory, and storage.

  10. Which lvextend option grows a logical volume and resizes its filesystem in the same step?

    The -r (--resizefs) option. It calls the filesystem resize tool after extending, so for example lvextend -r -L +5G /dev/vg0/data needs no separate resize2fs or xfs_growfs.

  11. Which command adds a new physical volume to an existing volume group?

    vgextend adds the physical volume to the volume group, as in "vgextend vg_data /dev/sdc1". If the device is not yet a PV, vgextend initializes it automatically (running pvcreate beforehand is also fine). The extra space becomes available for new or resized logical volumes.

  12. Which command initializes a block device for use by LVM as a physical volume?

    pvcreate, e.g. pvcreate /dev/sdb1. It writes an LVM label and metadata area to the device so it can be added to a volume group.

  13. In interactive fdisk, which command saves partition table changes to disk and exits?

    The w command writes the pending partition table changes to disk and exits fdisk. The q command also exits, but it discards all unsaved changes.

  14. Which filesystem format provides built-in snapshots and subvolumes?

    btrfs is a copy-on-write filesystem with native snapshots and subvolumes. xfs and ext4 have no native snapshot feature, and tmpfs is a RAM-backed filesystem with no on-disk structure.

  15. Which command reports free and used space for each mounted filesystem?

    df reports free and used space per mounted filesystem. Adding -h prints sizes in human-readable units such as MiB and GiB, while du instead totals the space used by files and directories.

  16. Which mdadm command creates a RAID 1 array /dev/md0 from /dev/sdb1 and /dev/sdc1?

    mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1. The --level option sets the RAID type and --raid-devices sets how many member devices the array starts with.

  17. Which mount option changes an already mounted filesystem's options without unmounting it?

    The remount option, as in mount -o remount,ro /mnt/data. It re-applies options such as ro or rw to a filesystem that is already mounted, so no unmount is needed.

  18. What is an inode in a Linux filesystem?

    An inode is a data structure that stores a file's metadata, such as owner, permissions, size, timestamps, and pointers to its data blocks. It does not store the filename, which lives in the directory entry that maps to the inode number.

  19. Which file maps hostnames to IP addresses locally, without querying a DNS server?

    /etc/hosts holds static entries in the format "IP_address canonical_name [aliases]". /etc/resolv.conf only lists DNS servers and search domains, and /etc/nsswitch.conf sets the lookup order.

  20. To apply a new Netplan configuration temporarily and have it roll back automatically unless the change is confirmed before the timeout, run netplan ___.

    try

  21. Which ip command adds a default gateway of 192.168.1.1?

    ip route add default via 192.168.1.1. The change is runtime-only and is lost at reboot unless saved in the persistent network configuration.

  22. Which command makes a shell variable available to child processes?

    export. For example, export PATH=$PATH:/opt/bin sets the variable and passes it to every process started from that shell.

  23. Which command returns you to the previous working directory?

    cd - switches to the previous directory, which the shell tracks in the OLDPWD variable. Running it again switches back, so it toggles between two locations.

  24. Which operator sends only standard error from a command to a file named err.log, overwriting the file?

    2> redirects file descriptor 2 (stderr) and truncates the target file. 2>> also targets stderr but appends instead of overwriting.

  25. Which command translates or deletes individual characters read from standard input?

    tr. It works only on stdin, so pipe data into it, as in echo "abc" | tr a-z A-Z.

  26. Which tar option letters create a gzip-compressed archive named backup.tar.gz verbosely?

    tar -czvf backup.tar.gz <path> creates it: c creates, z compresses with gzip, v is verbose, f names the file. Extraction swaps c for x, as in tar -xzvf backup.tar.gz.

  27. Which tool is designed to copy data from a failing disk, skipping unreadable sectors and retrying them later?

    ddrescue copies around read errors on the first pass, logs bad areas in a mapfile, and retries them afterward. rsync syncs files at the file level and cannot image a failing block device.

  28. Which component provides hardware-assisted CPU virtualization from inside the Linux kernel when used with QEMU?

    KVM is a Linux kernel module that uses CPU virtualization extensions (Intel VT-x, AMD-V), while QEMU emulates the devices and runs the VM process. libvirt and virsh only manage VMs and do not provide the CPU virtualization.

  29. Which qemu-img subcommand converts a disk image from one format to another, such as raw to qcow2?

    qemu-img convert. Use -f for the source format and -O for the output format, for example: qemu-img convert -f raw -O qcow2 disk.img disk.qcow2.

  30. What is CPU overcommitment in virtualization?

    Assigning more virtual CPUs across VMs than the host has physical cores or threads. It works because VMs rarely use all their vCPUs at once, but heavy simultaneous load causes contention and slowdowns.

  31. Which virsh command gracefully shuts down a running guest by sending an ACPI shutdown request?

    virsh shutdown asks the guest OS to power off cleanly through ACPI. virsh destroy is the tempting choice, but it forcibly stops the guest like pulling the power cord and does not delete it.

  32. Which kernel parameter boots a Linux system into rescue mode using the systemd rescue target?

    systemd.unit=rescue.target tells systemd to boot into the rescue target (single-user mode). init=/bin/sh replaces the init program with a shell instead, bypassing systemd entirely.

  33. Which command shows a kernel module's description, author, license, and supported parameters?

    modinfo reads a module's metadata, including description, author, license, dependencies, and parameters. lsmod only lists loaded modules with their size and use count, without that detail.

  34. The dmesg command prints the contents of the kernel ___ buffer, which holds boot and hardware messages.

    ring

  35. On a Linux server, training a machine learning model is a common workload offloaded to the ___ because its many parallel cores handle large matrix calculations faster than a CPU.

    GPU

  36. Which command makes an exported volume group known to a new system after its disks are moved there?

    vgimport makes an exported volume group known to the new system's LVM metadata. vgscan only searches disks for volume groups; it does not import an exported one.

  37. What does pvmove do when run against a physical volume that is in use?

    pvmove relocates allocated physical extents from one PV to other PVs in the same VG, usually before removing a disk. Resizing a PV to match its device is done by pvresize, not pvmove.

  38. Which command creates an XFS filesystem on the partition /dev/sdb1?

    mkfs.xfs (or mkfs -t xfs) writes a new XFS filesystem to the device. mkfs.ext4 builds an ext4 filesystem instead, and xfs_growfs only enlarges an existing, mounted XFS filesystem.

  39. Which /etc/fstab field lists mount options such as noatime and nofail?

    The fourth field holds the comma-separated mount options. The third field is the filesystem type, and the fifth is the dump flag.

  40. To point a Linux host at a DNS server with the IP address 192.0.2.53, add the line "___ 192.0.2.53" to /etc/resolv.conf.

    nameserver

  41. Which tool combines ping and traceroute into a continuously updating per-hop report of latency and packet loss?

    mtr sends probes to every hop repeatedly and shows live loss and latency statistics per hop. tracepath only maps the path and reports MTU, without continuous statistics, and nc and ss are not path tools.

  42. In the command ls -l | wc -l, the pipe operator connects the standard output of ls to the standard ___ of wc.

    input

  43. Which history expansion re-runs the previous command exactly as entered?

    !! expands to the entire previous command line. !$ expands only to the last argument of the previous command, and !* expands to all of its arguments but not the command name.

  44. To mirror a source directory to a destination and remove files from the destination that no longer exist in the source, add the rsync option --___.

    delete

  45. To display a disk image's format, virtual size, actual disk size, and backing file, run qemu-img ___ followed by the image filename.

    info

  46. Which virsh command moves a running VM to another host with minimal downtime?

    virsh migrate --live transfers a running guest to another host while it keeps running. virsh save writes the VM state to a file and stops the guest, so it is not a live migration.

  47. The initrd is a temporary root filesystem loaded into memory that supplies the drivers the kernel needs to mount the real ___ filesystem.

    root

  48. An unmounted XFS filesystem with a damaged structure is repaired by running the ___ command against its device.

    xfs_repair

  49. To stop the boot process from dropping to emergency mode when a removable data disk listed in /etc/fstab is absent, add the ___ mount option to its entry.

    nofail

  50. To query only the mail exchanger records for example.com with dig, run dig example.com ___.

    MX