UTERMINAL
TERMINAL
NEXT
$V1$
PAUSE
PAGETURNER
ENCORE5
ENCORE
BOX
COMMAND
GO
chroot
SYNTAX
/etc/chroot newroot command
FUNCTION
chroot causes the command and the environment
of the command to be relative to the newroot.
chroot is restricted to the superuser.
Assume that the file system has the above form:
/
|
------------------------------------
| | | |
| | | |
lib bin etc usr
|
----------------------
| | |
cti miked yori
|
------------------------
| | |
842 843 851
Let us see the effect of using chroot by
entering the command chroot /usr/cti ls
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type chroot /usr/cti ls
Please type chroot /usr/cti ls
You will be helped this time!
$PROMPT$
FORGET1
chroot /usr/cti ls
Observe the result on the terminal!
842 843 851
$PROMPT$
Think about the result ...
It is a short listing of the files in the directory /usr/cti.
Note however, the PATH must be set so the command ls
can be found with respect to the newroot.