Which loop in shell scripting tests the condition before executing the body of the loop?

  • while
  • for
  • until
  • do-while
The while loop in shell scripting tests the condition before executing the body of the loop. It will repeatedly execute the loop body as long as the specified condition remains true.

In Linux, services that are set to restart automatically after a failure are said to be "_________".

  • Resilient
  • Autorestart
  • Persistent
  • Robust
In Linux, services that are set to restart automatically after a failure are said to be "Autorestart." This feature ensures that critical services can recover from failures and continue running, enhancing system reliability and availability.

In Linux, the ________ command can be used to see who has been granted sudo access.

  • sudoers
  • whoami
  • visudo
  • su
In Linux, the visudo command is used to see who has been granted sudo access. This command opens the sudoers file in a safe manner for editing and displays the sudo configuration. It's important to use visudo to avoid syntax errors in the sudoers file, which could lock you out of administrative access.

Which system in Linux allows for the management and supervision of service daemons?

  • systemd
  • SysV init
  • GRUB
  • iptables
systemd is the system in Linux that allows for the management and supervision of service daemons. It's a modern initialization system and service manager that replaces the traditional SysV init. systemd provides enhanced control and monitoring of services and system initialization.