TSORT(1)
β¨ TSORT(1) β like, the topological sort era β¨
okay bestie, sit DOWN, because this one is a whole vibe π
it lives in the GNU coreutils world and it goes by tsort, which is short for topological sort β yes it's giving algorithms-class but make it cute π
πΈ NAME πΈ
tsort β perform topological sort
π¦ SYNOPSIS π¦
tsort [OPTION] [FILE]
π DESCRIPTION π
So the whole plot twist here: tsort writes a totally ordered list that's consistent with the partial ordering sitting in FILE. Like, you hand it a bunch of "this comes before that" crumbs, and it hands you back one long line of "here's literally everyone, in an order that doesn't break a single one of your rules" π₯ no cap.
If you don't give it a FILE β or if FILE is - β it just reads standard input. So you can pipe right into it, main character energy π«Ά
The options are short but iconic:
--helpβ display this help and exit π«--versionβ output version information and exit β
π AUTHOR π
Written by Mark Kettenis.
π REPORTING BUGS π
Found a bug? Don't put that in the group chat, put it in the inbox bestie π:
- Report bugs to:
bug-coreutils@gnu.org - GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
- General help using GNU software: <https://www.gnu.org/gethelp/>
- Report any translation bugs to <https://translationproject.org/team/>
π§ SEE ALSO π§
- Full documentation <https://www.gnu.org/software/coreutils/tsort>
- or available locally via:
info '(coreutils) tsort invocation'
π and the legal-ish outro, because she's an icon π
Packaged by Ubuntu (9.10-1ubuntu2).
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.
fr fr, no warranty β read that part twice π
GNU coreutils 9.10 Β· August 2026 Β· TSORT(1) β mwah, slay, go sort something topologically π¦β¨
π¦ where this page comes from
- ubuntu stonking: gnu-coreutils 9.10-1ubuntu2 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms