Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: size of directory

by Zaxo (Archbishop)
on Oct 10, 2002 at 06:48 UTC ( #204108=note: print w/replies, xml ) Need Help??

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??

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://204108]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2020-10-29 17:18 GMT
Find Nodes?
    Voting Booth?
    My favourite web site is:

    Results (274 votes). Check out past polls.