Linux is a Unix-like, mostly POSIX-compatible operating system. It is among the most widely used operating systems today.
Bash is a Unix shell and command language. It's the default shell on the majority of Linux distributions and macOS. Bash is a command processor, which means that a user’s prompt causes the OS to take an action. As the most common shell, all good Linux developers and operators should be familiar with Bash.
Public questions (free account) are common interview questions. They are great for practicing, or if you want to filter candidates using the classic problems.
Select all the statements about the output of the following script that are correct.
#!/bin/bash value=$1 if [ $value -eq 100 ] then echo "value is eq 100" elif [ $value -gt 100 ] then echo "value is gt 100" else case $value in [1-3]*) echo "value is between 1 and 39 (inclusive)" ;; [4-5]*) echo "value is between 40 and 59 (inclusive)" ;; 9[1-8]) echo "value is between 91 and 98 (inclusive)" ;; 99) echo "value is $value" ;; *) echo "value is unknown" ;; esac fi