I have just started writing shell scripts. In if constructs, is the if considered to be a command or a keyword?
If it is a command, its path should be listed when searched through the which command. In reality, which does not find anything.
If if is not a command then ideally it does not need to be separated by a semicolon when then is written in the same line.
Can any of you please explain whether if is a command or a statement?
fikeyword.