In Unix shell scripting, an if block is closed with 'fi', which is 'if' spelled backwards. This syntax is unique to shell scripts. Options A ('end if') is not valid shell syntax, option B ('}') is used for code blocks in other languages, and option D ('#') starts a comment.