DEV Community

Bijay Kumar Pun
Bijay Kumar Pun

Posted on

2

Linux Test Session: Sorting with $sort

$sort

$(du / | sort -nr | head -n 10)

  • du shows disk usage at root directory ( a huge huge file)
  • sort -nr sorts the file numerically in reverse order
  • head -10 shows only the top 10 sorted lines
  • () pushes it to the sub-shell in the background

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more