| 1 |
.TH gt5 1 "July 2009" "gt5 v1.4.0.1" |
| 2 |
|
| 3 |
.SH NAME |
| 4 |
gt5 \- a diff\-capable 'du\-browser' |
| 5 |
|
| 6 |
.SH SYNOPSIS |
| 7 |
.B gt5 |
| 8 |
[ dir | file | dir file | file file2 ] [options] |
| 9 |
|
| 10 |
.SH DESCRIPTION |
| 11 |
.B gt5 |
| 12 |
reads the output of |
| 13 |
.BR du , |
| 14 |
compares it with a du\-log saved by the last run, |
| 15 |
converts it into HTML and opens the resulting file with a |
| 16 |
.BR textbrowser . |
| 17 |
|
| 18 |
If files are given on the commandline they are expected to be |
| 19 |
(optionally |
| 20 |
.IR gzip / bzip2 \-compressed) |
| 21 |
logfiles of |
| 22 |
.BR "du \-akx /some/dir" . |
| 23 |
It is up to you to take care that the given directories/files represent |
| 24 |
the same directory. |
| 25 |
.I gt5 |
| 26 |
will show lots of new files if you don't. ;\-) |
| 27 |
|
| 28 |
.SH OPTIONS |
| 29 |
|
| 30 |
.IP "\-\-cut\-at float" |
| 31 |
Files and directories that are below |
| 32 |
.I float |
| 33 |
percent of their parents are not shown. Default is |
| 34 |
.IR 0.1 , |
| 35 |
gt5 will accept values between 0.01 and 30. |
| 36 |
|
| 37 |
.IP \-\-debug |
| 38 |
Turn on debug. Generate HTML files and do not run browser. |
| 39 |
|
| 40 |
.IP "\-\-diff\-dir directory" |
| 41 |
Use |
| 42 |
.I directory |
| 43 |
instead of |
| 44 |
.I ~/.gt5\-diffs/ |
| 45 |
to read/store du\-logs. |
| 46 |
This switch is ignored if gt5 is only used with files. |
| 47 |
|
| 48 |
.IP \-\-discard |
| 49 |
Do not save the current state, in other words: be able to diff against the old |
| 50 |
state again. This feature is disabled if gt5 is only used with files. |
| 51 |
|
| 52 |
.IP \-\-help |
| 53 |
Display brief help. |
| 54 |
|
| 55 |
.IP \-\-link\-files |
| 56 |
Also insert links to files to access them from within gt5. This can be very |
| 57 |
handy if your browser is configured to handle the files MIME\-type correctly. |
| 58 |
This feature is disabled if gt5 is only used with files. |
| 59 |
|
| 60 |
.IP "\-\-max\-depth int" |
| 61 |
Do not show anything below a depth of |
| 62 |
.I int |
| 63 |
directories. Default is |
| 64 |
.IR 5 |
| 65 |
(also see |
| 66 |
.B BUGS |
| 67 |
below). |
| 68 |
|
| 69 |
.IP "\-\-max\-lines int" |
| 70 |
Only consider the |
| 71 |
.I int |
| 72 |
biggest files and directories within the output of |
| 73 |
.IR du . |
| 74 |
|
| 75 |
.IP \-\-no\-diffs |
| 76 |
Use this if you are not interested in the history of the directories processed, |
| 77 |
for example in /tmp. |
| 78 |
|
| 79 |
.IP "\-\-save\-as file" |
| 80 |
DEPRECATED, use |
| 81 |
.B du \-akx |
| 82 |
or |
| 83 |
.B du \-ak |
| 84 |
(see |
| 85 |
.BR \-\-with\-mounts ), |
| 86 |
save the output to a file and run gt5 against one (ore two) of these files |
| 87 |
later. |
| 88 |
|
| 89 |
.IP \-\-save\-state |
| 90 |
Force saving current state, overwriting a previous |
| 91 |
.IR \-\-discard . |
| 92 |
(Some people seem to have gt5 aliased to |
| 93 |
.IR "'gt5 \-\-discard'" .) |
| 94 |
|
| 95 |
.IP \-\-verbose |
| 96 |
Display messages. |
| 97 |
|
| 98 |
.IP \-\-with\-mounts |
| 99 |
By default gt5 calls |
| 100 |
.B du |
| 101 |
with |
| 102 |
.B \-akx |
| 103 |
to ignore mounted filesystems. Use this to inspect mounted partitions too, i.e. call |
| 104 |
.B du |
| 105 |
with |
| 106 |
.B \-ak |
| 107 |
|
| 108 |
.SH HELPERS |
| 109 |
If |
| 110 |
.I gawk |
| 111 |
or a |
| 112 |
.I textbrowser |
| 113 |
are missing and you want to install them into |
| 114 |
.IR "~/bin " "(or " "/usr/local/bin " "if you have write access there), " gt5 |
| 115 |
comes with the following helpers: |
| 116 |
|
| 117 |
.IP \-\-get\-gawk |
| 118 |
Download, compile and install a copy of |
| 119 |
.IR gawk . |
| 120 |
|
| 121 |
.IP \-\-get\-links |
| 122 |
Download, compile and install a copy of |
| 123 |
.IR links . |
| 124 |
|
| 125 |
.IP \-\-get\-links2 |
| 126 |
Download, compile and install a copy of |
| 127 |
.IR links2 . |
| 128 |
|
| 129 |
.IP \-\-get\-elinks |
| 130 |
Download, compile and install a copy of |
| 131 |
.IR elinks . |
| 132 |
|
| 133 |
.SH TEXTBROWSERS |
| 134 |
It is recommended to use |
| 135 |
.IR "links " "with " gt5 . |
| 136 |
Other textbrowsers are also possible but there are several |
| 137 |
good reasons why links is given priority over the others: |
| 138 |
|
| 139 |
.IP elinks: |
| 140 |
links is |
| 141 |
.I much |
| 142 |
faster on startup/exit |
| 143 |
|
| 144 |
.IP lynx: |
| 145 |
does not honor a documents |
| 146 |
.I coloring |
| 147 |
|
| 148 |
.IP netrik: |
| 149 |
no colors, |
| 150 |
.I unfavourable cursor navigation |
| 151 |
|
| 152 |
.IP retawq: |
| 153 |
no colors, |
| 154 |
.I can't |
| 155 |
handle <a name>\-tags |
| 156 |
|
| 157 |
.IP w3m: |
| 158 |
.I Version 0.5.2 and later are known to work. Older versions experienced unfavourable |
| 159 |
handling of <a name>\-tag, |
| 160 |
.I unfavourable cursor navigation |
| 161 |
and no colors |
| 162 |
.PP |
| 163 |
Only |
| 164 |
.IR links / links2 ", " "elinks " "and " lynx |
| 165 |
are now considered usable (and also chosen in that order). See |
| 166 |
.BR ENVIRONMENT / GT5_BROWSER |
| 167 |
below. |
| 168 |
|
| 169 |
.SH FILES |
| 170 |
.I ~/.gt5.html |
| 171 |
.RS |
| 172 |
contains a copy of the last run |
| 173 |
.RE |
| 174 |
.I ~/.gt5\-diffs/ |
| 175 |
.RS |
| 176 |
compressed du\-logs are stored here |
| 177 |
|
| 178 |
.SH ENVIRONMENT |
| 179 |
|
| 180 |
.IP GT5_BROWSER |
| 181 |
force using a (specific) textbrowser |
| 182 |
|
| 183 |
.IP GT5_CHARSET |
| 184 |
force using a (specific) charset for HTML header instead of using |
| 185 |
.I $LANG |
| 186 |
|
| 187 |
.IP GT5_DEBUG_DIR |
| 188 |
Directory where to write gt5.debug* data if --debug option is set. |
| 189 |
|
| 190 |
.SH BUGS |
| 191 |
Directories at depth |
| 192 |
.B max\-depth |
| 193 |
are not browsable and so look like files. |
| 194 |
|
| 195 |
.SH AUTHOR |
| 196 |
Thomas Sattler <gt5 at gmx dot net> |
| 197 |
|
| 198 |
.SH "SEE ALSO" |
| 199 |
.BR du (1), |
| 200 |
.BR links (1), |
| 201 |
.BR elinks (1), |
| 202 |
.BR lynx (1) |