What is the primary purpose of the $ symbol in Unix/Linux shell scripting?

What is the primary purpose of the $ symbol in Unix/Linux shell scripting?

  1. A.

    To terminate a running process

  2. B.

    To access the value of a variable or perform command substitution

  3. C.

    To declare loop variables in Bash

  4. D.

    To redirect output to another file

  5. E.

    To define comments in a shell script

Attempted by 936 students.

Sign up free to check your answer

Sign up free

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…