HomeManualTopicsTypesSymbols

std::chroot

changes the root directory

Parameter

new_root
the new root directory

Results

None

Description

This function needs I/O-access rights.

Example

chroot! "/my_root_jail"

Topic

POSIX

See also

std::chdir changes the current working directory