STUB(8) 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 options 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 135.104.24.16 sysname achille you are 18.26.4.9 port 1248
%
SOURCE
/sys/src/cmd/aux/stub.c
SEE ALSO
mntgen(4)
Page 1 Plan 9 (printed 12/15/25)