Which of the following is a commented line?
-
*This is commented
-
//This is commented
-
#This is commented
-
#/This is commented
C
Correct answer
Explanation
In shell scripting, the '#' character is used to denote comments. Lines starting with '#' are ignored by the shell. Option C shows the correct comment syntax. Option D has an extra '/' character which is incorrect.