2015-10-08 11:15:08 -04:00
|
|
|
.Dd 2015-10-08
|
2015-01-31 08:20:02 -05:00
|
|
|
.Dt CHROOT 1
|
2015-01-31 14:37:03 -05:00
|
|
|
.Os sbase
|
2015-01-30 15:17:58 -05:00
|
|
|
.Sh NAME
|
|
|
|
.Nm chroot
|
2015-01-31 17:54:23 -05:00
|
|
|
.Nd run a command or shell with a different root directory
|
2015-01-30 15:17:58 -05:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Ar dir
|
2015-01-31 17:54:23 -05:00
|
|
|
.Op Ar cmd Op Ar arg ...
|
2015-01-30 15:17:58 -05:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2013-07-20 01:27:42 -04:00
|
|
|
runs
|
2015-01-31 17:54:23 -05:00
|
|
|
.Ar cmd
|
2013-07-20 01:27:42 -04:00
|
|
|
after changing the root directory to
|
2015-01-30 15:17:58 -05:00
|
|
|
.Ar dir
|
2013-06-14 12:55:25 -04:00
|
|
|
with the
|
2015-01-30 15:17:58 -05:00
|
|
|
.Xr chroot 2
|
2015-01-31 17:54:23 -05:00
|
|
|
system call and after changing the working directory to the new root.
|
2013-07-20 01:27:42 -04:00
|
|
|
If
|
2015-01-31 17:54:23 -05:00
|
|
|
.Ar cmd
|
2013-06-14 12:55:25 -04:00
|
|
|
is not specified, an interactive shell is started in the new root.
|
2015-01-30 15:17:58 -05:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr chdir 2 ,
|
|
|
|
.Xr chroot 2
|