System Grab Bag

View all TLDR pages from common (or from all pages)

tsort

Perform a topological sort. A common use is to show the dependency order of nodes in a directed acyclic graph. More information: https://www.gnu.org/software/coreutils/tsort.
  • Perform a topological sort consistent with a partial sort per line of input separated by blanks:
    tsort {{path/to/file}}
  • Perform a topological sort consistent on strings:
    echo -e "{{UI Backend\nBackend Database\nDocs UI}}" | tsort

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.