2015-01-31 23:54:23 +01:00
|
|
|
.Dd January 31, 2015
|
2015-01-31 14:20:02 +01:00
|
|
|
.Dt CHROOT 1
|
2015-01-31 19:37:03 +00:00
|
|
|
.Os sbase
|
2015-01-30 21:17:58 +01:00
|
|
|
.Sh NAME
|
|
|
|
.Nm chroot
|
2015-01-31 23:54:23 +01:00
|
|
|
.Nd run a command or shell with a different root directory
|
2015-01-30 21:17:58 +01:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Ar dir
|
2015-01-31 23:54:23 +01:00
|
|
|
.Op Ar cmd Op Ar arg ...
|
2015-01-30 21:17:58 +01:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2013-07-20 01:27:42 -04:00
|
|
|
runs
|
2015-01-31 23:54:23 +01:00
|
|
|
.Ar cmd
|
2013-07-20 01:27:42 -04:00
|
|
|
after changing the root directory to
|
2015-01-30 21:17:58 +01:00
|
|
|
.Ar dir
|
2013-06-14 18:55:25 +02:00
|
|
|
with the
|
2015-01-30 21:17:58 +01:00
|
|
|
.Xr chroot 2
|
2015-01-31 23:54:23 +01: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 23:54:23 +01:00
|
|
|
.Ar cmd
|
2013-06-14 18:55:25 +02:00
|
|
|
is not specified, an interactive shell is started in the new root.
|
2015-01-30 21:17:58 +01:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr chdir 2 ,
|
|
|
|
.Xr chroot 2
|