What is the primary keyword to start a loop that will iterate a fixed number of times in shell scripting?

  • for
  • while
  • repeat
  • loop
The primary keyword to start a loop that will iterate a fixed number of times in shell scripting is for. The for loop allows you to specify the number of iterations and is commonly used for such purposes.

Which command can be used to list currently loaded kernel modules?

  • lsmod
  • modprobe
  • modinfo
  • insmod
The command 'lsmod' is used to list currently loaded kernel modules in Linux. This command displays a list of all the kernel modules that are currently loaded into the running kernel.

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.