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.
Loading...
Related Quiz
- What is the primary protocol used by NFS for sharing files?
- You are writing a script that requires parsing command-line options with both short and long formats. Which command would you likely use?
- If you want to store the exit status of a command in a variable, you would typically use the _________ built-in variable.
- When managing disk partitions, the term _________ refers to a method that allows for spanning a filesystem across multiple physical disks.
- When setting up SSH for the first time, the server-side cryptographic keys are stored in the /etc/ssh/________ directory.