2015-01-30 20:17:58 +00:00
|
|
|
.Dd January 30, 2015
|
|
|
|
.Dt CHROOT 1 sbase\-VERSION
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm chroot
|
|
|
|
.Nd invoke a command with a different root directory
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Ar dir
|
|
|
|
.Op Ar command Op Ar arg ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2013-07-20 05:27:42 +00:00
|
|
|
runs
|
2015-01-30 20:17:58 +00:00
|
|
|
.Ar command
|
2013-07-20 05:27:42 +00:00
|
|
|
after changing the root directory to
|
2015-01-30 20:17:58 +00:00
|
|
|
.Ar dir
|
2013-06-14 16:55:25 +00:00
|
|
|
with the
|
2015-01-30 20:17:58 +00:00
|
|
|
.Xr chroot 2
|
2013-06-14 16:55:25 +00:00
|
|
|
system call, and changing the working directory to the new root.
|
2013-07-20 05:27:42 +00:00
|
|
|
If
|
2015-01-30 20:17:58 +00:00
|
|
|
.Op Ar command
|
2013-06-14 16:55:25 +00:00
|
|
|
is not specified, an interactive shell is started in the new root.
|
2015-01-30 20:17:58 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr chdir 2 ,
|
|
|
|
.Xr chroot 2
|