Computer Science, asked by TbiaSupreme, 1 year ago

Which of the following character is used for commenting a line in a shell script?
(a) *
(b) %
(c) $
(d) #

Answers

Answered by choudhary21
8
❤️_______ <b>Hey Mate________❤️

✌️_______UR ANSWER_______✌️

D. #

The first two characters of the first line should be # then follows the path to the shell that should interpret the commands that follow.

⤴️_____HOPE HELP YOU_____⤴️
Answered by mindfulmaisel
1

# Character is used for commenting a line in a shell script.

Answer: Option (d)

Explanation:

A simple shell script would use ‘#’ for commenting. Certain characteristics of the commenting line has been given as follows,

  • The line that begins with # causes the remaining characters on that line to be ignored.  
  • The comment lines are not statements for execution. In fact, they got totally ignored.
  • The comments are often termed as notes.
  • This is used for explanatory text about the script.
  • It makes the developer to understand about the source code better.
Similar questions