How to sort a file in decending order
-
sort -d
-
sort
-
sort -r
-
sort -R
C
Correct answer
Explanation
The sort -r command reverses the default ascending order to descending. Without -r, sort arranges lines from smallest to largest (alphabetically or numerically). The -r flag simply inverts this order arrangement.