Exam CFR-310 All QuestionsBrowse all questions from this exam
Question 9

An incident responder has collected network capture logs in a text file, separated by five or more data fields. Which of the following is the BEST command to use if the responder would like to print the file (to terminal/screen) in numerical order?

    Correct Answer: C

    The best command to use for printing the file in numerical order is 'sort -n'. The 'sort' command sorts lines of text within a file, and the '-n' option specifies a numerical sort, which is necessary for ordering numerical data correctly.

Discussion
WutanOption: C

The answer is C, sort –n. The sort command is used to sort lines of text in a file. The –n option specifies that the sort should be done numerically.