chroot.1 - sbase - suckless unix tools
(HTM) git clone git://git.suckless.org/sbase
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
chroot.1 (460B)
---
1 .Dd October 8, 2015
2 .Dt CHROOT 1
3 .Os sbase
4 .Sh NAME
5 .Nm chroot
6 .Nd run a command or shell with a different root directory
7 .Sh SYNOPSIS
8 .Nm
9 .Ar dir
10 .Op Ar cmd Op Ar arg ...
11 .Sh DESCRIPTION
12 .Nm
13 runs
14 .Ar cmd
15 after changing the root directory to
16 .Ar dir
17 with the
18 .Xr chroot 2
19 system call and after changing the working directory to the new root.
20 If
21 .Ar cmd
22 is not specified, an interactive shell is started in the new root.
23 .Sh SEE ALSO
24 .Xr chdir 2 ,
25 .Xr chroot 2