Multiple choice technology operating systems

How to sort a file in decending order

  1. sort -d

  2. sort

  3. sort -r

  4. sort -R

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The sort -r command in Unix sorts lines in reverse (descending) order. The -r flag stands for reverse sorting. Without -r, sort sorts in ascending order by default. Option D (sort -R) does a random sort, not descending.