summaryrefslogtreecommitdiff
path: root/util/sbase/chroot.1
diff options
context:
space:
mode:
Diffstat (limited to 'util/sbase/chroot.1')
-rw-r--r--util/sbase/chroot.125
1 files changed, 25 insertions, 0 deletions
diff --git a/util/sbase/chroot.1 b/util/sbase/chroot.1
new file mode 100644
index 00000000..ff49fe91
--- /dev/null
+++ b/util/sbase/chroot.1
@@ -0,0 +1,25 @@
+.Dd October 8, 2015
+.Dt CHROOT 1
+.Os sbase
+.Sh NAME
+.Nm chroot
+.Nd run a command or shell with a different root directory
+.Sh SYNOPSIS
+.Nm
+.Ar dir
+.Op Ar cmd Op Ar arg ...
+.Sh DESCRIPTION
+.Nm
+runs
+.Ar cmd
+after changing the root directory to
+.Ar dir
+with the
+.Xr chroot 2
+system call and after changing the working directory to the new root.
+If
+.Ar cmd
+is not specified, an interactive shell is started in the new root.
+.Sh SEE ALSO
+.Xr chdir 2 ,
+.Xr chroot 2