logo

utils

~/.local/bin tools and git-hooks git clone https://hacktivis.me/git/utils.git

chroot.1 (896B)


  1. .\" Collection of Unix tools, comparable to coreutils
  2. .\" Copyright 2017-2023 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 args ...
  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. .Lc $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 occured 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 AUTHORS
  52. .An Haelwenn (lanodan) Monnier Aq Mt contact@hacktivis.me