KVM stands for Kernel-based Virtual _________.

  • Machine
  • Manager
  • Memory
  • Module
KVM stands for Kernel-based Virtual Machine. It is a Linux kernel module that enables hardware-assisted virtualization, allowing you to run multiple virtual machines on a single host.

Which tool is used for orchestrating multiple Docker containers?

  • Docker Compose
  • Docker Swarm
  • Kubernetes
  • Ansible
Kubernetes is used for orchestrating multiple Docker containers. It's a powerful container orchestration platform that automates the deployment, scaling, and management of containerized applications.

In Linux, which mechanism allows users to execute commands as another user, typically the superuser?

  • sudo
  • su
  • runas
  • impersonate
The sudo command in Linux allows users to execute commands as another user, typically the superuser (root). It provides a fine-grained control mechanism for delegating administrative privileges while maintaining an audit trail of who executed which commands with elevated privileges.

When working with Docker, the Dockerfile is used to define and configure the container's _________.

  • Behavior
  • Networking
  • Environment
  • Parameters
When working with Docker, the Dockerfile is used to define and configure the container's environment. This includes specifying the base image, installing software, setting environment variables, and other container-specific configurations.

While debugging a long script, you realize that a specific section of the script is causing an error. Which command can you temporarily add to halt the script's execution and inspect variables at that point?

  • break
  • pause
  • halt
  • debug
You can temporarily add the break command to halt the script's execution at a specific point during debugging. This allows you to inspect variables, control flow, and identify the source of the error. Once the debugging is complete, you can remove the break statement to resume normal script execution.

When working with file permissions, the ________ command is used to modify the special permissions like setuid, setgid, and sticky bit.

  • chattr
  • chmod
  • chown
  • lsattr
When working with file permissions, the chmod command is used to modify the special permissions like setuid, setgid, and the sticky bit. These special permissions can change the behavior of files and directories, and chmod is used to set or remove them.

What is the primary purpose of the netstat command?

  • Display network statistics and connections
  • List all installed packages
  • Check system resource usage
  • Create a new network interface
The primary purpose of the netstat command is to display network statistics and connections. It provides valuable information about network interfaces, routing tables, and active network connections. It's a crucial tool for network troubleshooting and monitoring.

The _________ directory in Linux contains device nodes and is crucial for the system's interaction with hardware.

  • /dev
  • /lib
  • /mnt
  • /var
The /dev directory in Linux contains device nodes and is crucial for the system's interaction with hardware. Device nodes represent physical and virtual devices, allowing the system to communicate with and control hardware components.

You've been given a new device without any documentation. You want to check if Linux has automatically loaded a driver for it. Which command would help you determine this?

  • lspci
  • dmesg
  • lsusb
  • udevadm
The dmesg command would help you determine if Linux has automatically loaded a driver for the new device. dmesg displays kernel messages, and you can look for entries related to the device to see if a driver has been loaded or if there are any issues with it.

When debugging a shell script, which option can be used with the bash command to enable debugging output?

  • #NAME?
  • #NAME?
  • #NAME?
  • #NAME?
When debugging a shell script, you can use the -x option with the bash command to enable debugging output. This option displays each command as it is executed, making it useful for identifying issues and understanding the script's execution flow.