Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Can I mount a zip (or other non-solid (so that accessing a file wouldn't decompress the whole archive) compressed archive format file) as a file system in Ubuntu?

share|improve this question

2 Answers 2

Install the package avfs then execute:


Say you have a zip file in ~/Documents/, then

cd ~/.avfs/home/$USER/Documents
ls -l

You could also browse the content in Nautilus, but you need to add a trailing # character by hand to the path (Ctrl-L to access the address bar).

share|improve this answer
Very cool!! At the moment it supports floppies, tar and gzip files, zip, bzip2, ar and rar files, ftp sessions, http, webdav, rsh/rcp, ssh/scp. Quite a few other handlers are implemented with the Midnight Commander's external FS – nealmcb Jan 22 at 14:58

In Nautilus, right click on the archive and then click "Open with Archive Mounter", once you've done this, your archive will show up as a new “drive” in Nautilus. (check tutorial here)

share|improve this answer
Intriguing - thanks. But this doesn't actually mount the file like avfs does. I.e. /proc/mounts doesn't change. Archive Mounter uses gvfs, which I guess lets you use gvfs-copy, gvfs-ls, gvfs-rm etc, but I see no way to use most commands, e.g. md5sum. – nealmcb Jan 22 at 15:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.