www.delorie.com/gnu/docs/sh-utils/sh-utils_68.html   search  
 
Buy GNU books!


GNU shell utilities

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

11.1 chroot: Run a command with a different root directory

chroot runs a command with a specified root directory. On many systems, only the super-user can do this. Synopses:

 
chroot newroot [command [args]...]
chroot option

Ordinarily, filenames are looked up starting at the root of the directory structure, i.e., `/'. chroot changes the root to the directory newroot (which must exist) and then runs command with optional args. If command is not specified, the default is the value of the SHELL environment variable or /bin/sh if not set, invoked with the `-i' option.

The only options are `--help' and `--version'. See section 2. Common options.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003