SHTL-MKDIR.TMP(1) GNU Portable Shell Tool SHTL-MKDIR.TMP(1) NNAAMMEE sshhttooooll mmkkddiirr - GGNNUU sshhttooooll mkdir(1) style command SSYYNNOOPPSSIISS sshhttooooll mmkkddiirr [--tt|----ttrraaccee] [--ff|----ffoorrccee] [--pp|----ppaarreennttss] [--mm|----mmooddee _m_o_d_e] [--oo|----oowwnneerr _o_w_n_e_r] [--gg|----ggrroouupp _g_r_o_u_p] _d_i_r [_d_i_r ...] DDEESSCCRRIIPPTTIIOONN This is a _m_k_d_i_r(1) style command with additional options and the ability to be smart if the directory already exists which is important for installation procedures. OOPPTTIIOONNSS The following command line options are available. --tt, ----ttrraaccee Shows the actually involved shell commands. --ff, ----ffoorrccee Forced continuation and no complaints if directory already exists. Default is to terminate with error. --pp, ----ppaarreennttss Automatic parent directory creation. Default is to only create the last directory in the path and fail if parents are missing. --mm, ----mmooddee _m_o_d_e The directory mode applied to the directory, see _c_h_m_o_d(1). Omitting mode skips this step and leaves the operating system default which is usually based on _u_m_a_s_k(1). Some directory modes require superuser privileges to be set. Default is to stick with operating system defaults. --oo, ----oowwnneerr _o_w_n_e_r The directory owner name or id applied to the directory, see _c_h_o_w_n(1). This option requires superuser privileges to execute. Default is to skip this step and leave the operating system default which is usually based on the executing uid or the parent setuid directory. --gg, ----ggrroouupp _g_r_o_u_p The directory group name or id applied to the directory, see _c_h_g_r_p(1). This option requires superuser privileges to execute to the fullest extend, otherwise the choice of _g_r_o_u_p is limited on most operating systems. Default is to skip this step and leave the operating system default which is usually based on the executing gid or the parent setgid directory. 18-Jul-2008 shtool 2.0.8 1 SHTL-MKDIR.TMP(1) GNU Portable Shell Tool SHTL-MKDIR.TMP(1) EEXXAAMMPPLLEE # Makefile install: shtool mkdir -f -p -m 755 $(bindir) shtool mkdir -f -p -m 755 $(mandir)/man1 : HHIISSTTOORRYY The GGNNUU sshhttooooll mmkkddiirr command was originally written for Public Domain by Noah Friedman and later revised by Ralf S. Engelschall in 1999 for inclusion into GGNNUU sshhttooooll. SSEEEE AALLSSOO _s_h_t_o_o_l(1), _m_k_d_i_r(1). 18-Jul-2008 shtool 2.0.8 2