Moderate

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

Correct answer: A. tee

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

Explanation

`tee` copies standard input to a file while also sending the same data to standard output, so the output is both saved and displayed. Commands such as `grep` filter text, whereas `cat` and `more` do not normally save a displayed stream.

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