English
Deutsch
  

Code


About Matthias Nott
Business Objects
Picture Galleries
Code
Technical
Download





Locations of visitors to this page

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.

 

  1. function xcd {
  2.   if [ "$1" == "" ]; then
  3.     echo Usage: xcd compressed_file_name
  4.   else
  5.     if [ "$1" == "-" ]; then
  6.      cd "`pwd | sed "s/\/home\/$USER\/.avfs\(.*\/\).*\$/\1/"`"
  7.     else
  8.       if [ ! -f ~/.avfs/#avfsstat/version ]; then
  9.         mountavfs
  10.       fi
  11.       cd "/home/$USER/.avfs`pwd`/$1#"
  12.     fi
  13.   fi
  14. }
 


27.03.2007, 12:16 Copyright © 2005 MN Soft Industry Software, 108, route de la Fin, CH-1874 Champéry
Tel.: +41 797 844554; Fax: +41 860 797 844554, Responsible: Matthias Nott., mn(at)mnsoft.org
Top of Page