-
Notifications
You must be signed in to change notification settings - Fork 0
/
fv.1
455 lines (455 loc) · 9.22 KB
/
fv.1
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
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
.\" -*- nroff -*-
.TH FV 1 "2024-01-10" "fv version 8-dev"
.SH NAME
fv \- archive and package directory lister
.SH SYNOPSIS
.B fv
[
.B \-v
]
[
.B \-?
]
[
.B \-h
]
[
.B \-l
]
[
.B \-t
type ]
archive1
[
.I archive2 ...
]
.SH DESCRIPTION
.B fv
is a wrapper around the file list functions of most common kinds of
archivers and packagers available on *NIX systems. It provides a fast,
easy way to look inside archives without having to remember the arcane
options required by many archiving programs.
.LP
The archive type is determined from the filename suffix (unless the
.B \-t
option is given), which selects which archiver program to run.
The archiver's `list archive contents' arguments are given to display
a directory containing the most generally useful information about the files
within the archive. The archive must be in a file; it cannot be given on
standard input.
.LP
If the program which is needed to handle an archive type is not available
on the system, the error message \(lqcommand not found\(rq is
displayed as it is encountered. The error message \(lqNot a known
archive format\(rq is displayed for unknown suffixes.
.LP
Several archive types do not have common file suffixes, so arbitrary but
unique suffixes are used. A few file extensions are ambiguous and could
refer to more than one type. The \-t option can be used in such cases to
force decoding as an alternate type. To find the complete list of archive
types and suffixes supported, execute
.B fv
with the \-l option.
This version supports the following file extensions:
.LP
.\" This section comes from: ./fv -l | sed -e /^Supported/,1d -e 's/^/.SM /'
.SM .3mf .7z .a .ace .alz .apk .apkm .AppImage .application .arc .arj .bun
.SM .bxy .bz2 .cab .cbmarc .ccs .cf .cgz .chm .chrt .cpio .cpio.bz2 .cpio.gz
.SM .cpio.Z .cpio.z .d64 .d71 .d80 .d81 .d82 .dar .dat .deb .depot .depot.gz
.SM .dmg .docm .docx .egg .epk .epub .f3d .flw .fpm .gem .gz .ha .hp .hqx
.SM .ipg .ipk .iso .jar .jffs2 .kfo .kgb .kil .kmz .kpr .kra .ksp .kwd .lbr
.SM .lha .lnx .lpkg .lz .lzh .lzma .lzo .mac .mar .mport .mscz .msi .n64 .nif
.SM .nth .odb .odc .odf .odg .odp .ods .odt .onepkg .opk .ora .otg .otp .ots
.SM .par .par2 .pbi .pdf .pet .pisi .pk3 .pkg .pptx .pq6 .pup .qpk .qpr .rar
.SM .resource .rpm .rpp .rsn .rub .rz .sa .sb2 .sb3 .sda .sdk .sfx .sh .sh2
.SM .shar .shk .sis .sit .slp .snap .spark .spm .sqfs .sqsh .squashfs .sto
.SM .sxd .sxi .sxm .sxw .t64 .tap .tar .tar.bz2 .tar.gz .tar.lz .tar.lzma
.SM .tar.xz .tar.Z .tar.z .tar.zst .tardist .taz .tbz .tbz2 .tc .tgz .tlz
.SM .txz .uRamdisk .uu .uua .uue .wacz .wad .wal .war .wfp .whl .wsz .x64
.SM .xar .xlsx .xpi .xps .xz .Z .z .zip .zoo .zpaq .zst .zz .[psrud]0[0-9]
.SM gz winmail.dat xz zst
.\" End of mechanically-generated section
.LP
Not all files supported are strictly archive types; several structured
documents formats are also supported. Most of these are build on
existing archive formats and can be explored using standard archive tools.
.LP
It is trivial to add more file types to
.BR fv .
Please contact the author if you know of one not included.
.LP
These are the file types supported:
.LP
.RS
.\" This section comes from: ./fv -v -l | sed -e a.LP -e 's/^\./\\\&./'
(unknown 3D package)
.LP
3-D Manufacturing format
.LP
7zip archive
.LP
ACE archive
.LP
Allegro4 not packed datafile
.LP
ALZ archive
.LP
Android package
.LP
Apkmirror Android package
.LP
AppImage package
.LP
Apple disk image
.LP
Apple II archive
.LP
ar archive
.LP
Archimedes Spark archive (RiscOS)
.LP
ARJ archive
.LP
BUN archive
.LP
bzip2-compressed cpio archive
.LP
bzip2-compressed file
.LP
bzip2-compressed tar archive
.LP
Commodore 64 archive
.LP
Compound File Compiler archive
.LP
compressed cpio archive
.LP
Conary Change Set
.LP
CP/M LBR archive
.LP
cpio archive
.LP
Debian distribution archive
.LP
Disk Archiver archive
.LP
Doom WAD archive
.LP
eCos package
.LP
EPub Document
.LP
Frugalware package
.LP
Google Earth
.LP
gzip-compressed file
.LP
gzip-compressed tar archive
.LP
ha archive
.LP
HP-UX package
.LP
HP48 distribution archive as posted to comp.sources.hp48
.LP
iPod Game
.LP
ISO9660 filesystem image file
.LP
Itsy package
.LP
Java jar file
.LP
Java Web Start
.LP
JFFS2 filesystem image file
.LP
KChart Chart
.LP
KFormula Document
.LP
KGB archive
.LP
Kivio Document
.LP
Kontour Illustration
.LP
KPresenter Document
.LP
Krita image
.LP
KSpread Spreadsheet
.LP
KWord Document
.LP
LHARC archive
.LP
Lua package
.LP
LZIP compressed file
.LP
lzip-compressed tar archive
.LP
LZMA compressed file
.LP
LZMA compressed tar archive
.LP
LZOP compressed file
.LP
Macintosh BinHex encoding
.LP
Macintosh MacBinary encoding
.LP
Macintosh StuffIt archive
.LP
Meta Archive
.LP
Microsoft Cabinet archive
.LP
Microsoft Compressed HTML
.LP
Microsoft Installer
.LP
Microsoft Office Open XML document
.LP
Microsoft Office Open XML document with Macros
.LP
Microsoft Office Open XML presentation
.LP
Microsoft Office Open XML spreadsheet
.LP
Microsoft OneNote package
.LP
Microsoft TNEF e-mail attachment
.LP
Midnight BSD ports package
.LP
Mozilla Java Cross Platform Installer
.LP
MuseScore music score
.LP
Netscape package
.LP
Nokia mobile phone theme
.LP
OpenDocument Chart
.LP
OpenDocument Database
.LP
OpenDocument Document
.LP
OpenDocument Drawing
.LP
OpenDocument Drawing Template
.LP
OpenDocument Formula
.LP
OpenDocument Presentation
.LP
OpenDocument Presentation Template
.LP
OpenDocument Spreadsheet
.LP
OpenDocument Spreadsheet Template
.LP
OpenMoko package
.LP
OpenOffice Drawing
.LP
OpenOffice Impress Presentation
.LP
OpenOffice Math
.LP
OpenOffice Writer Document
.LP
OpenRaster image
.LP
PAQ6 compressed archive
.LP
Pardus package
.LP
Parity Archive ver. 2
.LP
PC-BSD package
.LP
Perl package
.LP
Portable Document Format document
.LP
Puppy Linux Extra Treats package
.LP
Puppy Linux package
.LP
Python package
.LP
Python wheel package
.LP
QNX package
.LP
QNX package archive
.LP
Quake3 packed file
.LP
RAR compressed archive
.LP
Red Hat RPM package
.LP
Red Hat RPP package
.LP
Rubix package
.LP
Ruby package
.LP
rzip archive
.LP
Scratch Project
.LP
SEA ARC archive
.LP
shell archive
.LP
Snap package
.LP
SNES sound archive
.LP
Squashfs filesystem image
.LP
Stampede Linux package
.LP
stopmotion movie
.LP
Syllable application package
.LP
Syllable resource package
.LP
SymbianOS SIS installable package
.LP
SysV package (SCO UNIX, IRIX)
.LP
tar archive
.LP
tardist IRIX package
.LP
Tellico database
.LP
Tukaani Linux package
.LP
U-boot ramdisk image
.LP
URPM hdlist file
.LP
uuencoded file
.LP
Web Archive Collection Zipped
.LP
Winamp compressed skin file
.LP
Wondershare Filmora Project
.LP
XAR archive
.LP
XML Paper Specification
.LP
xz-compressed file
.LP
xz-compressed tar archive
.LP
ZIP archive
.LP
ZOO archive
.LP
ZPAQ compressed archive
.LP
zstd-compressed file
.LP
zstd-compressed tar archive
.LP
ZZIP archive
.LP
.\" End of mechanically-generated section
.RE
.\" ---------------------------------------------------------------------------
.SH OPTIONS
.TP
.B "\-? \-h"
Show the
.B fv
help information (this also appears if
.B fv
is run with no arguments).
.TP
.B \-l
Display a list of the file extensions supported.
.TP
.BI \-t \ type
Use
.I type
as the archive type (extension) instead of determining it from the file name.
.TP
.B \-v
Set verbose mode. Display the type of archive before the listing. If \-l is
also given, display a description of each archive type supported instead of
the file extensions. If two \-v options are given, the archive command
is displayed as it is executed.
.\" ---------------------------------------------------------------------------
.SH EXAMPLES
View the list of files contained in a ZIP archive:
.EX
fv file.zip
.EE
.LP
View the list of files embedded in a PDF file and see what commands are
executed to do so:
.EX
fv -v -v complicated.pdf
.EE
.LP
View the contents of a CD-ROM using its device name:
.EX
fv \-t iso /dev/cdrom
.EE
.LP
View a spark file that shares the same extension as a SEA ARC file:
.EX
fv \-t spark file.arc
.EE
.\" ---------------------------------------------------------------------------
.SH "EXIT STATUS"
.B fv
returns the the exit code of the archive listing program, which may be zero
even in case of error in some cases. If the archive type is unsupported
it returns 1 and if no arguments are given it returns 3.
.\" ---------------------------------------------------------------------------
.SH BUGS
.BR fv 's
command-line option processing is very limited; the order which options appear
is significant and only one option may follow each -.
.\" ---------------------------------------------------------------------------
.SH AUTHOR
Daniel Fandrich <dan@coneharvesters.com>
.LP
See https://github.com/dfandrich/fileviewinfo/
.LP
.B fv
was inspired by the late Vernon D. Buerg's program
.I fv
for displaying directories of MS-DOS archives.
.\" ---------------------------------------------------------------------------
.SH COPYRIGHT
.B fv
is Copyright (c) 2003\(en2024 Dan Fandrich <dan@coneharvesters.com>.
Licensed under the MIT license (see LICENSE).
.\" ---------------------------------------------------------------------------
.SH "SEE ALSO"
.B fv
is similar in concept to
.BR als (1),
part of the atool package
(see https://www.nongnu.org/atool/).
The
.BR extractcode (1)
program (part of ScanCode, see https://github.com/nexB/scancode-toolkit/)
similarly extracts files from many archive formats instead of merely listing
them.