QuestionQ171Verified/Essential CommandsCopy linkReport a problemAsk AstroTutorSave questionIn a shell script file, which character is used to begin a comment line?A;B*C#D/Show AnswerAnswerExplanationIn POSIX-compliant shells (such as bash, sh, and ksh), the number sign '#' marks the start of a comment. Everything from '#' to the end of that line is ignored by the shell when executing the script, allowing developers to annotate code. This is documented in the bash manual under 'Comments'.Learn moreBash Reference Manual - CommentsShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion