Curated

System Management

0 votes

All cards206

  1. Running virsh ___ webvm configures libvirt to start the guest named webvm automatically whenever the host boots.

    autostart

  2. Which file do admins edit to set the GRUB 2 timeout before regenerating the boot configuration?

    /etc/default/grub holds the editable GRUB 2 settings, such as the timeout, that grub2-mkconfig reads. grub.cfg is generated output, so manual edits there are overwritten on the next regeneration.

  3. Which protocol does a PXE client use to get its IP address and the boot server's location?

    DHCP gives the PXE client its IP address, the next-server address and the boot filename. TFTP is a common mistake, but it only downloads the boot files afterward.

  4. Temporary files that need not survive a reboot are normally placed in the ___ directory, which is world-writable with the sticky bit set.

    /tmp

  5. Running modprobe with the short option ___ unloads a module along with any of its dependencies that are no longer in use.

    -r

  6. Which dmidecode option limits output to a single DMI type, such as memory or BIOS?

    The -t option filters output by DMI type, such as dmidecode -t memory. The -s option is different: it prints only one string value, such as system-serial-number.

  7. Which ipmitool command lists temperature, fan and voltage readings from the baseboard management controller?

    ipmitool sensor reads the BMC's sensor data repository, including temperatures, fans and voltages. ipmitool sel list shows the System Event Log, which holds past events rather than current readings.

  8. The ___ is a low-cost single-board computer from a UK-based foundation that commonly runs Linux in embedded projects such as IoT gateways and home automation controllers.

    Raspberry Pi

  9. (image)

    Each of these commands handles a different layer of the storage stack involved in growing a logical volume and the filesystem on it.

  10. The -s option of vgcreate sets the size of each physical ___ in the new volume group.

    extent

  11. Before pvremove can be run on a physical volume that belongs to a volume group, the volume must first be removed from that group with the ___ command.

    vgreduce

  12. To create a new partition on /dev/sdb, the command parted /dev/sdb ___ gpt must first be run to write a GPT partition table label.

    mklabel

  13. Which command expands a mounted XFS filesystem after its underlying device has been enlarged?

    xfs_growfs expands a mounted XFS filesystem to fill its enlarged device and takes the mount point as its argument. resize2fs is the equivalent for ext2/3/4 and does not work on XFS.

  14. Which fio option sets the I/O pattern, such as randread, randwrite or readwrite?

    --rw (also --readwrite) selects the I/O pattern for the job. --bs is a tempting neighbour, but it only sets the block size of each I/O.

  15. Which mount -t filesystem type mounts a Samba share from a Windows file server?

    The cifs type uses the kernel CIFS client to mount SMB/Samba shares. The nfs4 type mounts NFS exports, not SMB shares.

  16. Which autofs file lists mount points and their map files?

    The master map, /etc/auto.master, defines each autofs mount point and the map file that describes what to mount there. /etc/fstab holds static mounts and is not read by autofs.

  17. To disable a static entry in /etc/hosts without deleting it, place the ___ character at the start of its line so the resolver treats the line as a comment.

    #

  18. Running tcpdump -w capture.pcap saves raw packets to a file that can be read back later with tcpdump -r capture.pcap.

    The -w option writes raw packets in pcap format instead of printing decoded lines. The -r option reads the saved file back for offline analysis, and tools such as Wireshark can open it too.

  19. Running ss state established lists only sockets that are in the LISTEN state.

    The established state filter limits output to connections in the ESTABLISHED state, meaning completed TCP connections. Sockets waiting for incoming connections are matched by the listening state filter instead.

  20. In the command sort < names.txt, the shell connects names.txt to the command's standard input, which is file descriptor ___.

    0

  21. Which command writes standard input to a file and also passes it on to standard output?

    tee copies standard input to both the named file and standard output, so a pipeline can continue. xargs builds command arguments from input and does not write files.

  22. Which command runs a script's contents in the current shell so its variables persist afterward?

    source (or the . builtin) executes the file in the current shell, so variables and functions it sets remain. bash and sh start a child shell whose changes disappear on exit.

  23. When cloning a disk with ddrescue, the third argument names a ___ that records which sectors have already been recovered so an interrupted run can resume where it stopped.

    mapfile

  24. What does nested virtualization allow a virtual machine to do?

    Nested virtualization exposes hardware virtualization extensions (Intel VT-x or AMD-V) to a guest so it can run a hypervisor such as KVM. Sharing memory pages describes kernel samepage merging, and direct device access describes PCI passthrough.

  25. A virtual disk that reserves its full size on the host up front is thick provisioned, whereas one that consumes host storage only as the guest writes data is ___ provisioned.

    thin

  26. Adding the ___ kernel parameter to the boot command line suppresses most kernel log messages on the console during startup.

    quiet

  27. (image)

    Each of these is used to inspect loaded modules or read information about them without loading or unloading anything.

  28. The ___ command lists devices attached to the system's USB buses, including hubs, keyboards, and external storage.

    lsusb

  29. (image)

    Each term is a distinct workload that Linux systems commonly offload to a GPU for its parallel processing power.

  30. (image)

    All five are commands or options used in sequence to move a volume group's disks from one Linux system to another.

  31. (image)

    Each term is a way of controlling or recovering an extent migration between physical volumes with the same LVM command.

  32. (image)

    Each term is a command, identifier, or path used to discover which block devices exist and how they are uniquely identified.

  33. Running df with the ___ option reports inode usage instead of block usage for each mounted filesystem.

    -i

  34. Running mkfs.ext4 with the ___ option followed by a name assigns a volume label to the new filesystem.

    -L

  35. After editing /etc/fstab on a systemd-based system, run systemctl ___ so systemd regenerates its mount units from the file.

    daemon-reload

  36. Running mount ___ attaches every filesystem listed in /etc/fstab that is not already mounted, except entries marked noauto.

    -a

  37. (image)

    These are all directives that can appear in /etc/resolv.conf to control how the Linux resolver finds and completes names.

  38. Which nc option checks whether a port is open without sending any data?

    -z puts nc in zero-I/O scan mode, so it only attempts the connection and reports the result. -l is wrong because it makes nc listen for incoming connections instead of connecting out.

  39. Which command starts iperf3 as the server that waits for test connections?

    iperf3 -s runs the listening server side, and a client then connects to it. iperf3 -c is the client side, which initiates the test rather than waiting for one.

  40. (image)

    Each term is a tool or operator for moving data between commands in a pipeline, but each does a different job in that flow.

  41. In bash, typing ___ on a command line expands to the last argument of the previous command.

    !$

  42. The command awk '{print $___}' report.txt prints only the third whitespace-separated field of each line in report.txt.

    3

  43. (image)

    Each of these is an rsync option that changes how files are selected, previewed, preserved, or transferred during synchronization.

  44. The qemu-img resize command refuses to reduce an image's virtual size unless the ___ option is included.

    --shrink

  45. Adding --output=___ to qemu-img info produces machine-readable output that is easy to parse in scripts.

    json

  46. (image)

    Each term is a way of copying, moving or preserving a VM, distinguished by how disk data is shared and whether the guest keeps running.

  47. (image)

    Each item is a component of the early Linux boot sequence, from the bootloader and kernel through the initrd to the init system.

  48. (image)

    Each is a dmesg option that changes how kernel ring buffer messages are filtered, displayed, watched or cleared.

  49. (image)

    Each term is a tool or location involved in verifying, diagnosing or recovering damaged ext or XFS filesystems.

  50. (image)

    Each of these is a mount option that restricts or alters how a mounted filesystem is accessed or tracked.