Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature-vt/sys/man/1/ns – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
.TH NS 1
2
.SH NAME
3
ns \- display name space
4
.SH SYNOPSIS
5
.B ns
6
[
7
.B -r
8
] [
9
.I pid
10
]
11
.SH DESCRIPTION
12
.I Ns
13
prints a representation of the file name space of the process with the named
14
.IR pid ,
15
or by default itself.
16
The output is in the form of an
17
.IR rc (1)
18
script that could, in principle, recreate the name space.
19
The output is produced by reading and reformatting the contents of
20
.BI /proc/ pid /ns .
21
.PP
22
By default,
23
.I ns
24
rewrites the names of network data files to represent the network
25
address that data file is connected to, for example replacing
26
.B /net/tcp/82/data
27
with
28
.BR tcp!123.122.121.9 .
29
The
30
.B -r
31
flag suppresses this rewriting.
32
.SH FILES
33
.B /proc/*/ns
34
.SH SOURCE
35
.B /sys/src/cmd/ns.c
36
.SH "SEE ALSO"
37
.IR ps (1),
38
.IR proc (3),
39
.IR namespace (4),
40
.IR namespace (6)
41
.SH BUGS
42
The names of files printed by
43
.I ns
44
will be inaccurate if a file or directory it includes has been renamed.