TSORT(1)

โœจ TSORT โ€” okay bestie, let's get you in ORDER โœจ

tsort โ€” perform topological sort. that's it, that's the whole name, and honestly? it ate. ๐Ÿ’…


๐ŸŒธ SYNOPSIS ๐ŸŒธ

tsort [OPTION] [FILE]

like. one file. one dream. ๐Ÿฆ‹


๐Ÿ’– DESCRIPTION ๐Ÿ’–

So here's the vibe: you hand tsort a bunch of pairs that say "this thing comes before that thing," and it hands you back a totally ordered list that's consistent with the partial ordering in FILE. It's giving "I sorted out the group chat drama and now everyone knows who's standing where." ๐Ÿ‘‘

If you give it no FILE at all, or you pass - as the FILE, it reads from standard input. Bestie loves a good pipe. ๐Ÿซถ

Then there's the little diva flags, and yes they go right here in the description, don't @ me:

  • --help โ€” shows you this help text and then dips. that's the whole job. โœจ
  • --version โ€” spits out the version info and exits. short, sweet, iconic. ๐ŸŽ€

๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Written by Mark Kettenis. king behavior, fr fr. ๐Ÿ’œ


๐Ÿ˜ญ REPORTING BUGS ๐Ÿ˜ญ

Found a bug? Not me finding a bug. ๐Ÿ™ˆ Please report it to:

lowkey if you find a bug and don't report it, the bug just lives there rent-free. do your part. ๐Ÿ›

Copyright ยฉ 2026 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.

This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. no cap, that's literally what it says, read it twice bestie. ๐Ÿ˜ญ


๐ŸŒˆ SEE ALSO ๐ŸŒˆ


that's the page!! this is GNU coreutils 9.12, dated September 2026, and it's TSORT(1) โ€” go forth and topologically sort, you absolute main character. mwah. ๐ŸŽ€โœจ๐Ÿ’–

๐Ÿ“ฆ where this page comes from