Using a pair of back quotes (`) will cause a shell to execute the back-quoted text as a command and substitute the output back into the original command.

  • Post author:
  • Post category:Blog
  • Post last modified:May 9, 2024
  • Reading time:1 mins read

Using a pair of back quotes (`) will cause a shell to execute the back-quoted text as a command and substitute the output back into the original command.

True or False?

  • True
  • False
Answers Explanation & Hint:

Using a pair of back quotes (`) in shell scripting is known as command substitution. When you enclose a command within back quotes, the shell executes that command and substitutes the output of the command back into the original command. Note that the use of backticks for command substitution is an older method, and modern shell scripting encourages using the $() syntax for command substitution, which provides better readability and nesting capabilities.

For more Questions and Answers:

NDG Linux Essentials 2.21 | Command Line Skills Module 5 | Chapter 05 Exam Answers Full 100%