Most Unix variants support FUSE, which allows programs to define new filesystem types. There are several FUSE filesystems that expose archive contents as a directory tree. This way any application can see archive contents as ordinary files transparently (see e. Seeg. Can I store and work with a directory in compressed form?here
For example, with avfs, you get read-only access:
mountavfs
cd ~/.avfs$PWD
vim foo.tgz\#/file-within-foo
With archivemount, you need to mount each archive explicitly, but you get read-write access).
mkdir foo.d
archivemount foo.tgz foo.d
vim foo.d/file-within-foo
fusermount -u foo.d; rmdir foo.d
- For example, with
avfs, you get read-only access:mountavfs cd ~/.avfs$PWD vim foo.tgz\#/file-within-foo - With
archivemount, you need to mount each archive explicitly, but you get read-write access.mkdir foo.d archivemount foo.tgz foo.d vim foo.d/file-within-foo fusermount -u foo.d; rmdir foo.d