QuestionQ57

VerifiedAutomation, Orchestration, and Scripting

A systems administrator needs to view an Apache 2 error.log file in real time while also saving its contents to a separate file for later review. Which of the following commands should the administrator use?

Explanation

tail -f continuously follows newly appended log entries. Piping its output to tee writes the entries to logfile.txt while also sending them to standard output for real-time viewing.

Community Discussion

No comments yet. Be the first to start the discussion!