Moderate

Which command is used to save the standard output in a file, as well as display it on the terminal ?

Correct answer: D. tee

  • A. more
  • B. cat
  • C. grep
  • D. tee

Explanation

`tee` copies standard input to a file while also sending the same data to standard output, so it remains visible on the terminal. Commands such as `cat` display or concatenate data but do not provide this simultaneous file-saving function.

Last updated

Practise Software Development Lifecycle

423 free Software Development Lifecycle MCQs from Software Engineering, each with the correct answer and an explanation. Unlimited attempts, no account needed.

Exams that ask Software Engineering questions like this

Software Engineering is on this paper prepared for on TestUstad, and all of them draw the same bank, so this question is worth knowing for it.

Related questions