From f2752f9088d73aa660ade98e7095467e34c05f4c Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 14 Jan 2013 01:24:16 +0100 Subject: [PATCH] namespaces.7: Add 'ls -l' example of /proc/PID/ns Signed-off-by: Michael Kerrisk --- man7/namespaces.7 | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/man7/namespaces.7 b/man7/namespaces.7 index ce1619600..54a977e3b 100644 --- a/man7/namespaces.7 +++ b/man7/namespaces.7 @@ -99,7 +99,20 @@ Each process has a .\" See commit 6b4e306aa3dc94a0545eb9279475b1ab6209a31f subdirectory containing one entry for each namespace that supports being manipulated by -.BR setns (2). +.BR setns (2): + +.in +4n +.nf +$ \fBls -l /proc/$$/ns\fP +total 0 +lrwxrwxrwx. 1 mtk mtk 0 Jan 14 01:20 ipc -> ipc:[4026531839] +lrwxrwxrwx. 1 mtk mtk 0 Jan 14 01:20 mnt -> mnt:[4026531840] +lrwxrwxrwx. 1 mtk mtk 0 Jan 14 01:20 net -> net:[4026531956] +lrwxrwxrwx. 1 mtk mtk 0 Jan 14 01:20 pid -> pid:[4026531836] +lrwxrwxrwx. 1 mtk mtk 0 Jan 14 01:20 user -> user:[4026531837] +lrwxrwxrwx. 1 mtk mtk 0 Jan 14 01:20 uts -> uts:[4026531838] +.fi +.in Bind mounting (see .BR mount (2))