|
If you want to mount zipped file systems directly, you can do so installing fuse, libfuse-dev and then downloading avfs from: www.inf.bme.hu/~mszeredi/avfs/. Configure it using ./configure --enable-fuse, then make and make install as root. Also, create a directory ~/.avfs where your virtual file system will be mounted.
Then use the following script that you can call to enter a compressed file. Use xcd myfile.tar.gz to enter the file, and use xcd - to get back from where you did this.
-
function xcd {
-
if [ "$1" == "" ]; then
-
echo Usage: xcd compressed_file_name
-
else
-
if [ "$1" == "-" ]; then
-
cd "`pwd | sed "s/\/home\/$USER\/.avfs\(.*\/\).*\$/\1/"`"
-
else
-
if [ ! -f ~/.avfs/#avfsstat/version ]; then
-
mountavfs
-
fi
-
cd "/home/$USER/.avfs`pwd`/$1#"
-
fi
-
fi
-
}
|