The sort command sorts output.
The uniq command only returns unique lines.
See the GNU/Linux command line tutorial for detailed instructions. Or, type man sort or man uniq in a terminal.
Did you find this post helpful? Leave a comment below, and subscribe to my RSS feed.