14 Useful Examples of Linux ‘sort’ Command – Part 1

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Linode referral link if you plan to buy VPS (it starts at only $10/month).
  4. Support us via PayPal donate - Make a Donation
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

4 Responses

  1. sealinger says:

    In the last command:

    $ ls -l /home/$USER | sort -t "," -nk2,5 -k9

    Why you put a parameter -t ? I don’t understand…

  2. OKCarl says:

    I have a copy of a 4.09 GB wordlist / dictionary, crackstation.txt. Just now the words and numbers are arranged in the usual order: 0123456789aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStT uUvVwWxXyYzZ

    How do I rearrange the order to something like:

    tTaAsShHwWiIoObBmMfFcCdDpPnNeEgGrRyYuUvVjJkKqQzZxX 1023985467

    (This sequence gives the first letters of English words in order of popularity, from most popular (left) to least popular (right))

  3. Anonymous says:

    “14 Useful Examples…”

    No, it’s 14 numbered entries, but several are just duplicate functions of sort using files vs using standard input.

  4. Meme says:

    Hello, what program are you use to create gif such as above?

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 300K+ Linux Users
  1. 177,942
  2. 8,310
  3. 37,548

Are you subscribed?