1CHROOT(1) User Commands CHROOT(1)
2
3
4
6 chroot - run command or interactive shell with special root directory
7
9 chroot [OPTION] NEWROOT [COMMAND [ARG]...]
10 chroot OPTION
11
13 Run COMMAND with root directory set to NEWROOT.
14
15 --groups=G_LIST
16 specify supplementary groups as g1,g2,..,gN
17
18 --userspec=USER:GROUP
19 specify user and group (ID or name) to use
20
21 --skip-chdir
22 do not change working directory to '/'
23
24 --help display this help and exit
25
26 --version
27 output version information and exit
28
29 If no command is given, run '"$SHELL" -i' (default: '/bin/sh -i').
30
31 Exit status:
32 125 if the chroot command itself fails
33
34 126 if COMMAND is found but cannot be invoked
35
36 127 if COMMAND cannot be found
37
38 - the exit status of COMMAND otherwise
39
41 Written by Roland McGrath.
42
44 GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
45 Report any translation bugs to <https://translationproject.org/team/>
46
48 Copyright © 2023 Free Software Foundation, Inc. License GPLv3+: GNU
49 GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
50 This is free software: you are free to change and redistribute it.
51 There is NO WARRANTY, to the extent permitted by law.
52
54 chroot(2)
55
56 Full documentation <https://www.gnu.org/software/coreutils/chroot>
57 or available locally via: info '(coreutils) chroot invocation'
58
59
60
61GNU coreutils 9.3 September 2023 CHROOT(1)