File: ytree.1

package info (click to toggle)
ytree 1.94-1.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 836 kB
  • ctags: 1,510
  • sloc: ansic: 15,271; makefile: 208
file content (404 lines) | stat: -rw-r--r-- 8,012 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
.\" extracted from ytree.doc 26 November 1996 by cmt2doc.pl
.TH YTREE 1 "21 March 2004" " " "LOCAL COMMANDS"
.PD .8v
.SH NAME
.nf
ytree \- File Manager \-
.fi

.SH SYNOPSYS

ytree [\fIarchive\fR \fIfile\fR|\fIdirectory\fR]

.SH DESCRIPTION

If there is no command line argument, the current directory will be used.

Following commands are available:

1.) DIR-Modus:
.TP
\fB\-Attribute\fR
Change direcory permissions (like chmod)
.TP
\fB\-Delete\fR
Delete selected directory
.TP
\fB\-Filespec\fR
Set file specification (reg. expression)
e.g. *.[ch] for all *.c and *.h \- Files
.TP
\fB\-Group\fR
Change directory group ownership
.TP
\fB\-Log\fR
Restart ytree with new
root directory/archiv file
.TP
\fB\-Makedir\fR
Create new directory
.TP
\fB\-Owner\fR
Change user ownership of selected directory
.TP
\fB\-Rename\fR
Rename selected directory
.TP
\fB\-Showall\fR
Show all files in all directories
.TP
\fB\-Tag\fR
Tag all files in selected directory
.TP
\fB\-Untag\fR
Untag all files in selected directory
.TP
\fB\-eXecute\fR
Execute a shell commando
.TP
\fB\-^Filemode\fR
Change viewmodus for files:
.nf
.RS
\fB\- filenames only\fR
\fB\- name, attributes, links, size,\fR
\fB  modification time, symb. link\fR
\fB\- name, attribute, inode, owner, group, symb. link\fR
\fB\- change status-, access time, symb. link\fR
.fi
.RE
.TP
\fB\-Return\fR
Switch to file modus
.TP
\fB\-^Quit\fR
QuitTo: If you exit ytree with ^Q, the last selected directory becomes your
current working directory. This feature only works if you start ytree
with this bash-function (copy this to your ~/.bashrc):
.nf
.RS

function yt
{
  echo cd $PWD >~/.ytree-$$.chdir
  /usr/bin/ytree $1 $2 $3 $4 $5
  source ~/.ytree-$$.chdir
  rm ~/.ytree-$$.chdir
}
.fi
.RE
.TP
.PP
2.) FILE-Modus
.TP
\fB\-Attribute\fR
Change file permissions (like chmod)
.TP
\fB\-^Attribute\fR
Change permissions of all tagged files.
\fB?\fR stands for: do not change attribute
.TP
\fB\-Copy\fR
Copy file
.TP
\fB\-^K Copy\fR
Copy all tagged files
.TP
\fB\-Delete\fR
Delete selected file
.TP
\fB\-^Delete\fR
Delete all tagged files
.TP
\fB\-Edit\fR
Edit selected file with EDITOR (see ~/.ytree)
or \- if not defined \- vi
.TP
\fB\-Filespec\fR
Set file specification (reg. expression)
e.g. *.[ch] for all *.c and *.h \- Files
.TP
\fB\-Group\fR
Change group ownership of selected file
.TP
\fB\-^Group\fR
Change group ownership of all tagged files
.TP
\fB\-Hex\fR
View selected file with HEXDUMP (see ~/.ytree),
or \- if not defined \- hd / od \-h
.TP
\fB\-Log\fR
Restart ytree with new root directory/archive file
.TP
\fB\-Move\fR
move selected file
.TP
\fB\-^N Move\fR
Move all tagged files
.TP
\fB\-Owner\fR
Change user ownership of selected file
.TP
\fB\-^Owner\fR
Change user owndership of all tagged files
.TP
\fB\-Pipe\fR
Pipe content of file to a command
.TP
\fB\-^Pipe\fR
Pipe content of all tagged files to a command
.TP
\fB\-Rename\fR
Rename selected file
.TP
\fB\-^Rename\fR
Rename all tagged files
.TP
\fB\-untag ^Search\fR
Untag files by using an external program (e.g. grep)
.TP
\fB\-Sort\fR
Sort filelist by
.nf
.RS
\fB\- access time\fR
\fB\- change time\fR
\fB\- extension\fR
\fB\- group\fR
\fB\- modification time\fR
\fB\- name\fR
\fB\- owner\fR
\fB\- size\fR
.fi
.RE
.TP
\fB\-Tag\fR
Tag selected file
.TP
\fB\-^Tag\fR
Tag all currently shown files
.TP
\fB\-Untag\fR
Untag selected file
.TP
\fB\-^Untag\fR
Untag all currently shown files
.TP
\fB\-View\fR
View file with the pager defined in ~/.ytree
or - if not defined - with pg \-cen
.TP
\fB\-eXecute\fR
Execute a shell commando
.TP
\fB\-e^Xecute\fR
Execute shell commando for all tagged files.
The string {} is replaced by the current filename
.TP
\fB\-pathcopY\fR
Copy selected file inclusive path
.TP
\fB\-pathcop^Y\fR
Copy all tagged files inclusive path
.TP
\fB\-^Filemode\fR
Switch view-modus for files:
.nf
.RS
\fB\- filenames only\fR
\fB\- name, attribute, links, size, modification time,\fR
\fB  symb. link\fR
\fB\- name, attribute, inode, owner, group, symb. link\fR
\fB\- changestatus-, access time, symb. link\fR
.fi
.RE
.TP
\fB\-^L\fR
Refresh Screen
.TP
\fB\-Space\fR
Suppress screen-output while working
.TP
\fB\-Return\fR
Switch to expand modus
.PP
3.) ARCHIV-DIR-Modus
.TP
\fB\-Filespec\fR
Set file specification (reg. expression)
e.g. *.[ch] for all *.c and *.h \- Files
.TP
\fB\-Log\fR
Restart ytree with new root directory/archive file
.TP
\fB\-Showall\fR
Show all files in all directories
.TP
\fB\-Tag\fR
Tag all files in selected directory
.TP
\fB\-Untag\fR
Untag all files in selected directory
.TP
\fB\-eXecute\fR
Execute a shell commando
.TP
\fB\-^Filemode\fR
Change viewmodus for files:
.nf
.RS
\fB\- filenames only\fR
\fB\- name, attribute, links, size, modification time\fR
\fB\- name, attribute, owner, group\fR
.fi
.RE
.TP
\fB\-^L\fR
Refresh Screen
.PP
4.) ARCHIV-FILE-Modus:
.TP
\fB\-Copy\fR
Copy selected file
.TP
\fB\-^K Copy\fR
Copy all tagged files
.TP
\fB\-Filespec\fR
Set file specification (reg. expression)
e.g. *.[ch] for all *.c and *.h \- Files
.TP
\fB\-Hex\fR
View selected file with HEXDUMP (see ~/.ytree),
or \- if not defined \- hd / od \-h
.TP
\fB\-Pipe\fR
Pipe content of all tagged to a command
.TP
\fB\-Sort\fR
Sort file list by
.nf
.RS
\fB\- access time\fR
\fB\- change time\fR
\fB\- extension\fR
\fB\- group\fR
\fB\- modification time\fR
\fB\- name\fR
\fB\- owner\fR
\fB\- size\fR
.fi
.RE
.TP
\fB\-Tag\fR
Tag selected file
.TP
\fB\-^Tag\fR
Tag all files in selected directory
.TP
\fB\-Untag\fR
Untag all files in selected directory
.TP
\fB\-View\fR
View file with the pager defined in ~/.ytree
or - if not defined - with pg \-cen
.TP
\fB\-eXecute\fR
Execute a shell commando
.TP
\fB\-^Filemode\fR
Switch view-modus for files:
.nf
.RS
\fB\- filenames only\fR
\fB\- name, attribute, links, size\fR
.fi
.RE
.TP
\fB\-^L\fR
Refresh Screen
.TP
\fB\-Return\fR
Switch to Expand-Modus
.PP
ytree switches to archive-modus automatically either by
choosing an archive file with the \fILog\fR commando or
by calling ytree from the command line with an archive file
given as a command line argument.

ytree recognize the filename extensions ".F", ".Z", ".z" and
".gz" and calls the appropriate uncompressor MELT 
(default=melt), UNCOMPRESS (default=uncompress) and GNUUNZIP
(default=gunzip \-c). You may change these settings in ~/.ytree.

ytree supports following archive types and requires:
.nf
.RS
.sp 1
\fB  TAR-Files: gtar     (tested with GNU-TAR 1.12)\fR
\fB  ARC-Files: arc      (tested with arc 5.12 02/05/86)\fR
\fB  LHA-Files: xlharc   (tested with xlharc V1.02 1989)\fR
\fB  ZIP-Files: unzip    (tested with unzip v5.0 08/92)\fR
\fB  "   "      zipinfo  (tested with zipinfo v1.0 08/92)\fR
\fB  ZOO-Files: zoo      (tested with zoo v2.10)\fR
\fB  RAR-Files: unrar    (tested with unrar v2.01\fR
\fB  RPM-Files: rpm2cpio (tested with RedHat V6.1)\fR
\fB  "   "      rpm      (tested with RedHat V6.1)\fR
.fi
.RE

Archive files will be recognized by filename extension (e.g zoo, zip).
TAR-Files may have following extensions:
.nf 
.RS
.sp 1
\fB  ".F", ".TFR", ".Faa",                            (freeze)\fR
\fB  ".Z", ".TZ", ".TZR", ".Xaa",                   (compress)\fR
\fB  ".z", ".gz", ".tzr", ".tz", ".xaa", ".tgz", ".TGZ",\fR
\fB  ".taz", ".TAZ", ".tpz" und ".TPZ"                  (gzip)\fR
.fi
.RE


The View commando is customizeable in the [VIEWER] section of ~/.ytree:

Example:

.nf 
\fB [VIEWER]
\fB .jpg,.gif,.bmp,.tif,.ppm,.xpm=xv
\fB .1,.2,.3,.4,.5,.6,.7,.8,.n=nroff \-man | less
\fB .ps=ghostview
\fB .mid,.MID=playmidi \-e
\fB .wav,.WAV=splay
\fB .au=auplay
\fB .avi,.mpg,.mov=xanim
\fB .htm,.html=lynx
\fB .pdf,.PDF=acroread
\fB .mp3=mpg123
.fi
.PP 

A command-line history is supported: Use cursor up/down.
Use "F2" on the command-line to select directories.


.SH FILES

$HOME/.ytree	ytree configuration file


.SH BUGS

To avoid problems with escape sequences on RS/6000 machines
(telnet/rlogin) please set the environment variable ESCDELAY:
.nf
.sp 1
ESCDELAY=1000
export ESCDELAY
.fi

.SH AUTOR

W. Bregulla (werner@frolix.han.de)