1
0
mirror of git://git.suckless.org/sbase synced 2024-12-22 15:04:53 +00:00
sbase/chroot.1

26 lines
461 B
Groff
Raw Normal View History

2015-01-31 22:54:23 +00:00
.Dd January 31, 2015
.Dt CHROOT 1
.Os sbase
.Sh NAME
.Nm chroot
2015-01-31 22:54:23 +00:00
.Nd run a command or shell with a different root directory
.Sh SYNOPSIS
.Nm
.Ar dir
2015-01-31 22:54:23 +00:00
.Op Ar cmd Op Ar arg ...
.Sh DESCRIPTION
.Nm
runs
2015-01-31 22:54:23 +00:00
.Ar cmd
after changing the root directory to
.Ar dir
with the
.Xr chroot 2
2015-01-31 22:54:23 +00:00
system call and after changing the working directory to the new root.
If
2015-01-31 22:54:23 +00:00
.Ar cmd
is not specified, an interactive shell is started in the new root.
.Sh SEE ALSO
.Xr chdir 2 ,
.Xr chroot 2