summaryrefslogtreecommitdiffstats
path: root/sys-utils/unshare.1
diff options
context:
space:
mode:
authorLubomir Rintel2014-12-28 21:23:37 +0100
committerKarel Zak2015-01-12 12:41:02 +0100
commit69a7761b957b70297ab10e6ace2c03facac721ce (patch)
treec00c368c3549d08dd3da6d7589b1f9a771a65cf6 /sys-utils/unshare.1
parenthwclock: man regression (diff)
downloadkernel-qcow2-util-linux-69a7761b957b70297ab10e6ace2c03facac721ce.tar.gz
kernel-qcow2-util-linux-69a7761b957b70297ab10e6ace2c03facac721ce.tar.xz
kernel-qcow2-util-linux-69a7761b957b70297ab10e6ace2c03facac721ce.zip
unshare: add some examples
...and fix one typo. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/unshare.1')
-rw-r--r--sys-utils/unshare.114
1 files changed, 14 insertions, 0 deletions
diff --git a/sys-utils/unshare.1 b/sys-utils/unshare.1
index ab0614efd..0ef43a1c9 100644
--- a/sys-utils/unshare.1
+++ b/sys-utils/unshare.1
@@ -103,6 +103,20 @@ Display version information and exit.
.TP
.BR \-h , " \-\-help"
Display help text and exit.
+.SH EXAMPLES
+.TP
+.B # unshare --fork --pid --mount-proc readlink /proc/self
+.TQ
+1
+.br
+Establish a PID namespace, ensure we're PID 1 in it against newly mounted
+procfs instance.
+.TP
+.B $ unshare --map-root-user --user sh -c whoami
+.TQ
+root
+.br
+Establish a user namespace as an unprivileged user with a root user within it.
.SH SEE ALSO
.BR unshare (2),
.BR clone (2),