Ubuntu – How to mount a zip file as a file system


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?

Best Answer

Install the package avfs then execute:


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

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

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).

Related Question