The mkdir (make directory) command in the Unix, DOS, OS/2 and Microsoft Windows operating systems is used to make a new directory. The underlying system call is also called mkdir(). In DOS, OS/2 and Windows the command is often abbreviated to md.

learn more… | top users | synonyms

1
vote
2answers
67 views

moving directories after grep

I have isseued the next command in order to move some directories to the "build_tools" folder however the result was not the one I expected. ls -l | grep 2014-03 | awk '{if ($8!=build_tools) print ...
12
votes
5answers
1k views

How do I tell mkdir to try creating dir1, and if it already exists create dir2, etc, until it hits a name that doesn't exist?

I want to create a directory with a number at the end, e.x. "dir1", and increment that number if the directory already exists until it hits a directory name that doesn't exist, and I need to do this ...
2
votes
1answer
55 views

How can I create several folders?

How can I create several subfolders in folder in one command. For example, I want to create: /home/user/*create dir1*/*create dir2*/*create dir3*/ Provided, I don't have dir1. And I can't use 3 ...
0
votes
1answer
151 views

file_exists() and mkdir($a, $b, true) do not work properly if my Apache runs in a VirtualBox and the DocumentRoot is a shared folder. Why?

I have a Windows7 PC with a hosted VirtualBox (Ubuntu). On the VirtualBox is an Apache2. The is shared to the Windows7 host. So if I use ls -l I see that the contents are owned by root:vboxsf. If ...
1
vote
1answer
84 views

Why isn't Interix mkdir honoring -p argument?

I'm using Interix on Windows for Unix compatibility and am finding the -p argument to mkdir not behaving as I expect: > which mkdir C:\SFU\bin\mkdir > mkdir -p c:\Program Files\ A subdirectory ...