http://www.perlmonks.org?node_id=204108


in reply to size of directory

The mkdir builtin creates the directory with mode 0777 if the mask argument is omitted. There is no mode argument.

mkdir /path/to/newdir;

What do you mean by 'size' in the title? An empty directory has a size of one disk block.

Update: ++podmaster reminds me of umask, which sets the current default mask applied to the creation of all new files (including directories), returning the old default mask to ease its restoration.

Update 2: =sjs=, your perl -e'mkdir{"t")' works for me. Are you running some blighted shell that demands double quotes for -e arguments? If so, try <code>perl -e"mkdir(q(t))"

After Compline,
Zaxo