Multiple choice technology operating systems

Which of the following is a commented line?

  1. *This is commented

  2. //This is commented

  3. #This is commented

  4. #/This is commented

Reveal answer Fill a bubble to check yourself
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.