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,

Replies are listed 'Best First'.
Re: Re: size of directory
by =sjs= (Initiate) on Oct 11, 2002 at 00:04 UTC
    when I

    > perl -e 'mkdir("t")' Not enough arguments for mkdir at -e line 1, at end of line Execution of -e aborted due to compilation errors.

    What do you mean??