Write the syntax for “if” conditionals in linux?

Syntax

If  condition is successful

then

execute commands

else

execute commands

fi

Category: Shell Scripting Interview Questions.