Linux Essentials (010-160) — Question 27

Which of the following commands sorts the output of the command export-logs?

Answer options

Correct answer: D

Explanation

The correct answer is D, as the pipe operator (|) passes the output of export-logs directly to the sort command for sorting. The other options use incorrect operators that do not facilitate the intended output sorting, such as redirection symbols (<, >, <>) or the background operator (&).