I suggest the proper command might be /usr/libexec/gvfsd-archive .
When you right-click a achive-file (eg. foo.tar.gz) and select "Open With Archive Mounter",
then you type:
and you would get:
ps aux | grep -i "foo.tar.gz"
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
ly 16085 6.0 0.2 21672 4672 ? Sl 01:18 0:07 /usr/libexec/gvfsd-archive file=file:///home/ly/downloads/scrapbook.tar.bz2
You'll find it's not necessary to convert the regular path into url as wolfgangmeyers described, and non-English charicters(eg. Chinese) are just fine(My locale is zh_CN.UTF-8).
Usage: /usr/libexec/gvfsd-archive key=value key=value ...
It seems like quite awkward to use gvfsd-archive directly, so I write two shell-scripts(archmount,archumount) and linked them into /usr/local/bin/ by:
to make it a little easier for use in command-line.
ln -s ~/.myscripts/archmount /usr/local/bin/
ln -s ~/.myscripts/archumount /usr/local/bin/
Following are their breif help:
archmount is a user-script which makes gvfsd-archive a little easier to use for local archives in command-line.
archive-files are mounted into $HOME/.gvfs/ by gvfsd-archive's default action.
Usage:archmount <file_1> [file_2] [...] [file_n]
Regular expression is supported for the arguments.
Supported file types: iso images;tar (compressed) files;
archmount foo/bar/foo.tar.gz foo1/foo2.tar.bz2
You can download the scripts here:
archumount is used to umount archives(in fact kill a gvfsd-archive process).
-h,--help show this help page
-l,--list list gvfsd-archive mounted files and their pids
-ka,--kill kill all gvfsd-archive processes.
mounted-files or mount-pionts which are seprated by blank.
mounted-files can be listed by operations -l/--list.
[By the way: My scripts don't support blank in file-name or path. I'm just about to learn shell-scripting, so you'd have to modify the scripts you yourself if you want to make them more flexible. Any advises are welcome here!]