1
0

ns 893 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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/il/82/data
  27. with
  28. .BR il!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.