logo

utils-std

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

mkdir.1 (1103B)


  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 2024-04-08
  5. .Dt MKDIR 1
  6. .Os
  7. .Sh NAME
  8. .Nm mkdir
  9. .Nd make directories
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Op Fl pv
  13. .Op Fl m Ar mode
  14. .Ar dir...
  15. .Sh DESCRIPTION
  16. .Nm
  17. creates each given
  18. .Ar dir
  19. in the order specified.
  20. .Sh OPTIONS
  21. .Bl -tag -width _m_mode
  22. .It Fl m Ar mode
  23. Set permission of new directories specified by
  24. .Ar dir ,
  25. relative to a=rwx using the same format as
  26. .Xr chmod 1 .
  27. .It Fl p
  28. Parents mode, create missing directories present in the path given by
  29. .Ar dir .
  30. As required by POSIX, parents are created with u=wx|~umask as their default mode, ignoring
  31. .Fl m Ar mode .
  32. .It Fl v
  33. Verbose mode, print each successfully made directory.
  34. .El
  35. .Sh EXIT STATUS
  36. .Ex -std
  37. .Sh SEE ALSO
  38. .Xr chmod 1
  39. .Sh STANDARDS
  40. .Nm
  41. should be compliant with the
  42. IEEE Std 1003.1-2024 (“POSIX.1”)
  43. specification.
  44. .Pp
  45. The
  46. .Fl v
  47. option is an extension also present in GNU coreutils and FreeBSD.
  48. .Sh AUTHORS
  49. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me