CompTIA Linux+ XK0-006 (V8) Practice Question

You have a CSV file named sales.csv whose records are formatted as Date,Region,Amount (for example:

2025-06-01,West,1750
2025-06-01,East,980

). Management wants the file sorted first alphabetically by the Region field and, within each region, by the Amount field in descending numeric order. Which single sort command will produce the required output and write it to standard output?

  • sort -t',' -k2,2r -k3,3n sales.csv

  • sort -t',' -k3,3nr -k2,2 sales.csv

  • sort -n -r -k3,3 -t',' sales.csv

  • sort -t',' -k2,2 -k3,3nr sales.csv

CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot