Question

    Read the below passage and answer the questions Shell can be accessed by users using a command line interface. A special program called Terminal in Linux/macOS, or Command Prompt in Windows OS is provided to type in the human-readable commands A program which is responsible for providing an interface to a user so that he/she can access the shell. It basically allows users to enter commands and see the output of those commands in a text-based interface.    As a shell can also take commands as input from file, we can write these commands in a file and can execute them in shell to avoid this repetitive work. These files are called  Shell Scripts  or  Shell Programs . Shell script comprises the following elements – ·         Shell Keywords – if, else, break etc. ·         Shell commands – cd, ls, echo, pwd, touch etc. ·         Functions ·         Control flow – if..then..else, case and shell loops etc.

    A single-line comment starts with 

    A $ Correct Answer Incorrect Answer
    B # Correct Answer Incorrect Answer
    C @ Correct Answer Incorrect Answer
    D % Correct Answer Incorrect Answer
    E None of these Correct Answer Incorrect Answer

    Solution

    A single-line comment starts with hashtag symbol with no white spaces (#) and lasts till the end of the line. If the comment exceeds one line then put a hashtag on the next line and continue the comment.

    Practice Next