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:
- bugs: <bug-coreutils@gnu.org>
- any translation bugs: <https://translationproject.org/team/>
- GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- general help using GNU software: <https://www.gnu.org/gethelp/>
lowkey if you find a bug and don't report it, the bug just lives there rent-free. do your part. ๐
๐ COPYRIGHT ๐
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 ๐
- Full documentation: <https://www.gnu.org/software/coreutils/tsort>
- or available locally via:
info '(coreutils) tsort invocation'
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
- arch rolling: coreutils 9.12-2 ยท GPL-3.0-or-later AND GFDL-1.3-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms