Which command in Bash is used for multi-way branching?
- case
- if
- for
- while
In Bash scripting, the case command is used for multi-way branching. It is often used when you need to evaluate a variable or expression and take different actions based on its value. It's a powerful tool for creating conditional logic in scripts.
Loading...
Related Quiz
- Which Linux tool can be used to trace system calls and signals?
- Which command can be used to list currently loaded kernel modules?
- You've been given a task to find all occurrences of the word "error" in a directory containing numerous log files. Which command would you primarily use for this search?
- In SSH, the private key should be kept secure and the ________ key is added to the server for authentication.
- In Linux, services that are set to restart automatically after a failure are said to be "_________".