Qtr No. 213, New Town Yehlanka Indore 454775
Predict the output of the following code.
#!/bin/bash
name="Hans"
test $name == "Hanss"
case $? in
0) echo "The name is Hans";;
*) echo "The name is not known;;
1) echo "The name is not Hans";;
esac
The name is not Hans
The name is not known
case statement contains a syntax error.
The name is Hans
To get all Self Assessment - Introduction to Unix Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee
We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.
Qtr No. 213, New Town Yehlanka Indore 454775
admin@prepflix.in
Updated on Thu, 11 Dec 2025