How do I sort a list alphabetically in Linux?

How do I sort a list alphabetically in Linux?
Answer
Sort lines of a text file
  1. To sort the file in alphabetical order, we can use the sort command without any options:
  2. To sort in reverse, we can use the -r option:
  3. We can also sort on the column. …
  4. Blank space is the default field separator. …
  5. In the picture above, we have sorted the file sort1.
 

Tìm kiếm

Back
Top