In Red Hat-based distributions, which command would you use to update all installed packages?

  • yum update
  • apt-get update
  • dnf upgrade
  • pacman -Syu
In Red Hat-based distributions, such as CentOS and Fedora, you would use the yum update command to update all installed packages. This command fetches and installs the latest updates for your system's software packages.

Which file on an SSH client contains the public keys of remote hosts it has connected to?

  • known_hosts
  • authorized_keys
  • id_rsa.pub
  • known_keys
The file on an SSH client that contains the public keys of remote hosts it has connected to is known_hosts. This file maintains a record of the public keys of remote servers or hosts you have previously connected to. It is used for verifying the authenticity of remote hosts during future SSH connections.

Which command is primarily used to view the routing table in Linux?

  • route
  • netstat
  • ifconfig
  • ping
The route command is primarily used to view the routing table in Linux. The routing table contains information about how network packets should be forwarded through the network. It displays the destination networks and the associated gateway or interface used to reach them.

Which file in Linux is primarily used to configure the static IP address of a network interface?

  • /etc/network/interfaces
  • /etc/hostname
  • /etc/resolv.conf
  • /etc/hosts
The primary file used to configure the static IP address of a network interface in Linux is '/etc/network/interfaces.' This file contains network interface configuration settings, including IP addresses, subnet masks, and gateways for static configurations.

Which Linux command is used to send signals to processes, commonly used for stopping them?

  • kill
  • start
  • halt
  • pause
The 'kill' command in Linux is used to send signals to processes. It is commonly used to terminate or stop processes gracefully. By default, 'kill' sends the TERM signal to a process, but it can be used to send other signals as well, depending on the situation.

To set up VPN connections in Linux, the ___________ software can be used to support multiple VPN protocols.

  • OpenVPN
  • SSH
  • Apache
  • NFS
To set up VPN connections in Linux, the OpenVPN software can be used to support multiple VPN protocols. OpenVPN is a widely used and flexible solution for creating VPNs on Linux systems.

To manage multiple container deployments in an automated way, many organizations use Kubernetes, often abbreviated as _________.

  • K8s
  • Kube
  • Kontain
  • Krypton
To manage multiple container deployments in an automated way, many organizations use Kubernetes, often abbreviated as "K8s." Kubernetes is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications.

What is the primary purpose of the echo command in Bash scripting?

  • Printing output to the terminal
  • Calculating mathematical expressions
  • Deleting files and directories
  • Running system commands
The primary purpose of the 'echo' command in Bash scripting is to print output to the terminal. It's often used to display messages, variables, or other data to the screen. For example, echo "Hello, World!" will print "Hello, World!" to the terminal.

In a shell script, which built-in variable represents the process ID of the current script?

  • $PID
  • $PPID
  • $SID
  • $$
The correct answer is d) $$, which represents the process ID (PID) of the current script. This variable is useful when you want to track or manage the script's own process. You can use it for various purposes, such as creating temporary files with unique names or monitoring the script's execution.

After the kernel is loaded, which system initializes services and system features?

  • init.d
  • systemd
  • rc.local
  • sysinit
After the kernel is loaded, systemd initializes services and system features in modern Linux systems. Systemd is responsible for managing system services, dependencies, and parallelization of tasks, making the boot process more efficient and predictable.