2015-01-31 22:54:23 +00:00
|
|
|
.Dd January 31, 2015
|
2015-01-31 13:20:02 +00:00
|
|
|
.Dt CHROOT 1
|
2015-01-31 19:37:03 +00:00
|
|
|
.Os sbase
|
2015-01-30 20:17:58 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm chroot
|
2015-01-31 22:54:23 +00:00
|
|
|
.Nd run a command or shell with a different root directory
|
2015-01-30 20:17:58 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Ar dir
|
2015-01-31 22:54:23 +00:00
|
|
|
.Op Ar cmd Op Ar arg ...
|
2015-01-30 20:17:58 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2013-07-20 05:27:42 +00:00
|
|
|
runs
|
2015-01-31 22:54:23 +00:00
|
|
|
.Ar cmd
|
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
|
2015-01-31 22:54:23 +00:00
|
|
|
system call and after changing the working directory to the new root.
|
2013-07-20 05:27:42 +00:00
|
|
|
If
|
2015-01-31 22:54:23 +00:00
|
|
|
.Ar cmd
|
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
|