ARCHIVEMOUNT(1)
π ARCHIVEMOUNT(1) β General Commands Manual π
okay bestie, buckle up, because this is archivemount, and it's literally the coolest little trick in the whole Unix playbook β¨
πΈ NAME πΈ
archivemount β mount an archive for access as a filesystem π
β¨ SYNOPSIS β¨
archivemount [-hVdf] [-o option[,option]β¦]β¦ archive mountpoint
π¦ DESCRIPTION π¦
So like. Through fuse(8), this thing mounts a whole file tree β the one chillin' inside archive β onto the directory mountpoint. That's it, that's the magic π
And when you're done being obsessed with it, umount and fusermount -u can undo the whole mapping. no cap.
π EXAMPLES π
bestie, watch this:
$ ls
files.tar.gz mnt/
$ tar -tf files.tar.gz
file1 file2
$ archivemount files.tar.gz mnt
$ ls mnt
file1 file2
$ echo zupa > mnt/file3
$ rm mnt/file1
$ umount mnt
$ ls
files.tar.gz files.tar.gz.orig mnt/
$ tar -tf files.tar.gz
file2 file3
likeβ¦ you literally edited a tarball in place and it just worked. main character energy, fr fr π
and here's the second one, the subtree slay:
$ tar -tf voreutils.tar.gz
src/ src/β¦
man/ man/aliases man/basename.1
README.md
$ archivemount -o subtree=man voreutils.tar.gz mnt
$ ls mnt
aliases basename.1
the way it just yeeted everything except man/ and stripped that prefix off too?? iconic. periodt. π
π OPTIONS π
heads up: for the complete list of baseline FUSE options that are supported, go peek at fuse(8). π«Ά but these ones right here? archivemount handles them specially:
-h,--helpβ writes the usage info AND all the available options out to the standard error stream, then dips. π-V,--versionβ writes the version ofarchivemount,libarchive, and FUSE to the standard output stream, then dips. βοΈ
-r,-o ro,-o readonlyβ disables writes entirely. no writing, none, zero. π βοΈ-o passwordβ prompts you for the archive passphrase. π-o nobackupβ so when you save writes, the original archive gets moved to"archive.orig". this flag deletes that file afterward. π-o nosaveβ lets writes happen in memory, but doesn't actually write them out when you unmount. the vibes are temporary, bestie. π«₯
-o subtree=regexβ hides all files that don't match regex, and for the ones that do match, it removes the matched prefix (peep the second example up there π). regex is a basic regular expression that behaves as-if it were prepended with the equivalent of^.?. implies-r. π-o formatrawβ archive is actually a compressed file, made available undermounpoint/saved-filenameormounpoint/data. implies-r. π
π BUGS π
Writing archives, probably. π (not me being honest)
π§ ARCHIVE FORMATS π§
libarchive(3) has the definitive list if you wanna go read it, but basically: all kinds of tar/ustar/pax/cpio archives, 7-Zip, ISO9660, ar, and RAR/Zip may all be read. π
and those can be compressed with gzip(1), xz(1), zstd(1), &c. β and all of it gets processed transparently, no extra work from you. π
same deal applies for writingβ¦ except you can't write RARs. π«
π SEE ALSO π
fusermount(1)libarchive(3)regex(7)fuse(8)umount(8)
omg and before you go β this whole page is from archivemount-ng, version 1b-1build1, dated February 3, 2026. mwah π go mount something β¨π¦πΈ
π¦ where this page comes from
- ubuntu resolute: archivemount 1b-1build1 Β· 0BSD
- ubuntu stonking: archivemount 1b-1build1 Β· 0BSD
- π the page's license: LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms