sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

chroot.1 (455B)


      1 .Dd 2015-10-08
      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