explain the control statement in Linux.
Answers
Answered by
1
Answer:
You can control the execution of Linux commands in a shell script with control structures. Control structures allow you to repeat commands and to select certain commands over others. A control structure consists of two major components: a test and commands. If the test is successful, then the commands are executed.
Explanation:
GIVE ME MARKS PLEASE
Answered by
0
The control statements in Linux, allow the repetition of certain commands to select them over other commands.
- Running Linux commands with control structures in the completed script. The control structure consists of two primary units the command and test and there are two different statements loops and conditions.
- If the specific test is successful then execute the direct commands. Thus, one can employ the control structures to accurately determine whether to promptly execute commands or not.
- A loop repeats orders, while a process executes a command when it reaches those conditions. There are three mechanisms to manage the loop: while, for, and for-in. There are two systems with two conditions: if and if.
Similar questions