Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ps(1)

proc(3)

namespace(4)

namespace(6)

NS(1)

NAME

ns − display name space

SYNOPSIS

­ns [ ­-r ] [ ­pid ]

DESCRIPTION

­Ns prints a representation of the file name space of the process with the named pid, or by default itself. The output is in the form of an rc(1) script that could, in principle, recreate the name space. The output is produced by reading and reformatting the contents of /proc/pid/ns. 

By default, ­ns rewrites the names of network data files to represent the network address that data file is connected to, for example replacing ­/net/il/82/data with il!123.122.121.9.  The ­-r flag suppresses this rewriting. 

FILES

­/proc/∗/ns

SOURCE

­/sys/src/cmd/ns.c

SEE ALSO

ps(1), proc(3), namespace(4), namespace(6)

BUGS

The names of files printed by ­ns will be inaccurate if a file or directory it includes has been renamed. 

Plan 9  —  December 11, 1999

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026