In Bash scripting, the ________ command is used to loop over a range of values.
- for
- while
- if
- echo
In Bash scripting, the for command is used to loop over a range of values. It allows you to execute a set of commands for each item in the specified range or list.
Loading...
Related Quiz
- You are writing a Bash script to automate server maintenance. You want to check if a directory exists before trying to create it. Which command would you use within your script to check for the directory's existence?
- What is the purpose of the $? variable in a shell script?
- To deny all incoming traffic by default and only allow specific traffic in iptables, one would set the default policy of the INPUT chain to ________.
- In Linux, the _________ command is used to change a user's password.
- To see the history of commands executed in the terminal, you would use the ________ command.