gt5(1)
β¨ gt5 β¨ β the manual, but make it make sense π
okay bestie, gather round, because gt5 is literally about to change your disk-space life. it's a diff-capable 'du-browser', and no, that's not a typo, that's the whole personality. π¦
πΈ SYNOPSIS πΈ
gt5 [ dir | file | dir file | file file2 ] [options]
like. look at that. so many ways to be iconic. π
π DESCRIPTION π
so here's the tea: gt5 reads the output of du, compares it against a du-log that it saved from the last time you ran it, converts the whole thing into HTML, and then opens the resulting file with a textbrowser. that's it. that's the serve. π«Ά
if you pass files on the commandline, they're expected to be (optionally gzip/bzip2-compressed) logfiles of du -akx /some/dir. and ngl, it is entirely on you to make sure the directories/files you hand over actually represent the same directory. if you don't? gt5 will show you lots of new files and you'll be sitting there like π. the manpage literally says ";β)" so you know it's real.
β¨ OPTIONS β¨
--cut-atfloat β anything (file or directory) that's below float percent of its parent justβ¦ doesn't get shown. default is0.1, andgt5will accept values between0.01and30.--debugβ turns debug on. it generates HTML files and does not run the browser. quiet little hermit mode. π--diff-dirdirectory β use directory instead of~/.gt5-diffs/to read/storedu-logs. heads up: this switch gets ignored ifgt5is only used with files.--discardβ don't save the current state. in other words: you get to diff against the old state again. very "no thoughts, just re-runs" of you. this feature is disabled ifgt5is only used with files.--helpβ display brief help. short, sweet, slay.--link-filesβ also inserts links to files so you can access them from withingt5. very handy if your browser is configured to handle the files MIME-type correctly. disabled ifgt5is only used with files.--max-depthint β don't show anything below a depth of int directories. default is5(also see BUGS below, bestie, it matters).--max-linesint β only consider the int biggest files and directories within the output ofdu. we love a curated feed. β¨--no-diffsβ use this if you're not interested in the history of the directories processed, for example in/tmp. living in the moment, periodt.--save-asfile β DEPRECATED, usedu -akxordu -ak(see--with-mounts), save the output to a file and rungt5against one (ore two) of these files later.--save-stateβ force saving the current state, overwriting a previous--discard. (some people seem to havegt5aliased to'gt5 --discard'. iconic behaviour honestly.)--verboseβ display messages. it will talk to you. π¬--with-mountsβ by defaultgt5callsduwith-akxto ignore mounted filesystems. use this to inspect mounted partitions too, i.e. callduwith-ak.
π HELPERS π
if gawk or a textbrowser are missing and you wanna install them into ~/bin (or /usr/local/bin if you have write access there), gt5 comes with the following helpers:
--get-gawkβ download, compile and install a copy ofgawk.--get-linksβ download, compile and install a copy oflinks.--get-links2β download, compile and install a copy oflinks2.--get-elinksβ download, compile and install a copy ofelinks.
it's giving "self-sufficient queen". π
π TEXTBROWSERS π
it is recommended to use links with gt5. other textbrowsers are also possible but there are several good reasons why links is given priority over the others:
elinks:linksis much faster on startup/exit.lynx: does not honor a documents coloring.netrik: no colors, unfavourable cursor navigation.retawq: no colors, can't handle<a name>-tags.w3m: Version0.5.2and later are known to work. Older versions experienced unfavourable handling of<a name>-tag, unfavourable cursor navigation and no colors.
only links/links2, elinks and lynx are now considered usable (and also chosen in that order). see ENVIRONMENT/GT5_BROWSER below. π
π¦ FILES π¦
~/.gt5.htmlβ contains a copy of the last run.~/.gt5-diffs/β compresseddu-logs are stored here.
π§ ENVIRONMENT π§
GT5_BROWSERβ force using a (specific) textbrowser.GT5_CHARSETβ force using a (specific) charset for HTML header instead of using$LANG.GT5_DEBUG_DIRβ Directory where to writegt5.debug*data if--debugoption is set.
π BUGS π
directories at depth max-depth are not browsable and so look like files. yeah. they just do. that's the vibe. π
π AUTHOR π
Thomas Sattler <gt5 at gmx dot net>
π₯ SEE ALSO π₯
du(1), links(1), elinks(1), lynx(1)
and that's the whole page, bestie!! this manual is from gt5 v1.4.0.1, dated July 2009 β yeah, she's an elder but she still ate. π β¨ go check your disk usage and have the best day, ily π«Άπ
π¦ where this page comes from
- debian bookworm: gt5 1.5.0~20111220+bzr29-4 Β· GPL-2.0-or-later
- debian trixie: gt5 1.5.0~20111220+bzr29-4 Β· GPL-2.0-or-later
- ubuntu jammy: gt5 1.5.0~20111220+bzr29-4 Β· GPL-2.0-or-later
- ubuntu noble: gt5 1.5.0~20111220+bzr29-4 Β· GPL-2.0-or-later
- ubuntu resolute: gt5 1.5.0~20111220+bzr29-4build1 Β· GPL-2.0-or-later
- ubuntu stonking: gt5 1.5.0~20111220+bzr29-4build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms