CFR-310 Exam QuestionsBrowse all questions from this exam

CFR-310 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?

Show Answer
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

1 comment
Sign in to comment
WutanOption: C
Sep 5, 2023

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.