SORT Commands Cheat Sheet

Here is a cli commands cheat sheet for SORT command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.

What is SORT command?

Add some data here

        # To sort a file:

# To sort a file by keeping only unique:
sort -u 

# To sort a file and reverse the result:
sort -r 

# To sort a file randomly:
sort -R 

Check out the SORT command documentation .

You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again

Check Also

Best AI tools list