📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!

  • google app store apple app store
  • ✖

      Question

      Which construct replaces a command with its output in a

      POSIX shell?
      A { command } Correct Answer Incorrect Answer
      B ( command ) Correct Answer Incorrect Answer
      C $(command) Correct Answer Incorrect Answer
      D command | Correct Answer Incorrect Answer
      E Correct Answer Incorrect Answer

      Solution

      Command substitution $(command) returns the command output as a string; legacy backticks `command` do the same but are harder to nest.

      Practice Next
      ask-question