logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git

chroot.1 (967B)


  1. .\" utils-std: Collection of commonly available Unix tools
  2. .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. .\" SPDX-License-Identifier: MPL-2.0
  4. .Dd 2023-08-04
  5. .Dt CHROOT 1
  6. .Os
  7. .Sh NAME
  8. .Nm chroot
  9. .Nd run in another root directory
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Ar newroot
  13. .Op Ar command Op Ar argument...
  14. .Sh DESCRIPTION
  15. .Nm
  16. runs
  17. .Ar command
  18. in the root directory at
  19. .Ar newroot .
  20. If no
  21. .Ar command
  22. was given,
  23. .Nm
  24. instead runs
  25. .Ql $SHELL -i
  26. with
  27. .Ev SHELL
  28. itself defaulting to
  29. .Pa /bin/sh .
  30. .Sh EXIT STATUS
  31. If
  32. .Ar command
  33. is invoked, the exit status of
  34. .Nm
  35. shall be the exit status of
  36. .Ar command ;
  37. Otherwise, the
  38. .Nm
  39. utility shall exit with one of the following values:
  40. .Bl -tag -width Ds
  41. .It 125
  42. An error occurred in
  43. .Nm
  44. .It 126
  45. .Ar command
  46. was found but couldn't be invoked.
  47. .It 127
  48. .Ar command
  49. wasn't found.
  50. .El
  51. .Sh HISTORY
  52. The
  53. .Nm
  54. utility first appeared in
  55. .Bx 4.3 Reno .
  56. .Sh AUTHORS
  57. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me