add v9fs example

This commit is contained in:
rsc 2006-04-04 18:23:57 +00:00
parent 89eaced6b1
commit d62a9f326a

View file

@ -64,6 +64,27 @@ available as service
is an
.IR rc (1)
script; examine it to see what local conventions apply.
.SH EXAMPLES
List the root directory on
.IR sources :
.IP
.EX
9fs sources
9p ls sources
.EE
.PP
Mount a remote file server
.I bootes
on Linux using the kernel 9P mount driver,
with
.I srv
handling authentication:
.IP
.EX
srv -a sources.cs.bell-labs.com sources
sudo mount -t 9P -o user=$USER,uid=`id -u`,gid=`id -g`,proto=unix
`namespace`/sources /n/sources
.EE
.SH SOURCE
.B \*9/src/cmd/srv.c
.br