$ 0 0 Sort command in Linux is used for sorting the contents of the text files. This tutorial shows you some basic examples of the sort command.