glenda.party
term% ls -F
term% pwd
$home/manuals/9front/8/stub
term% cat index.txt
STUB(8)                     System Manager's Manual                    STUB(8)

NAME
       stub - provide mount point stubs

SYNOPSIS
       aux/stub [ -Dd ] path/name

DESCRIPTION
       Aux/stub  union mounts itself before path in the name space.  It serves
       a file system containing a single entry, name, with file mode  0.   The
       intent is to provide a place to bind or mount other resources.  The op‐
       tions are:

       -D     print all 9P messages

       -d     make name a directory; by default it is a file

EXAMPLE
       Use  stub  and  sshnet  (see  ssh(1))  to create a new network protocol
       ‘‘mit'' that is actually TCP tunneled via SSH to a machine at MIT:

              % sshnet -m /net.alt amsterdam.lcs.mit.edu
              % aux/stub -d /net/mit
              % bind /net.alt/tcp /net/mit
              % con -l mit!plan9.bell-labs.com!whoami
              connected to mit!plan9.bell-labs.com!whoami on /net/mit/0
              i am 204.178.31.2 sysname achille you are 18.26.4.9 port 1248
              %

SOURCE
       /sys/src/cmd/aux/stub.c

SEE ALSO
       mntgen(4)

                                                                       STUB(8)