• +91 9723535972
  • info@interviewmaterial.com

Unix Interview Questions and Answers

Question - What do you understand by command substitution?

Answer -

Command substitution is the method that is performed every time the commands that are enclosed in backquotes are processed by the shell.  This process replaces the standard output and displays it on the command line.

Command substitution can perform the following tasks:

  • Invoke subshell
  • Result in word splitting
  • Remove trailing new lines
  • By using ‘redirection’ and ‘cat’ command, allows setting a variable to the content of the file.
  • Allows setting a variable to the output of the loop

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners