+3 votes
in Programming Languages by (14.6k points)

How can I create a hierarchy of directories using a Linux command.


For the following directory tree, what command should be used as 'mkdir' does not work.


1 Answer

0 votes
by (48.7k points)

You need to use "-p" option with "mkdir" command to create the nested directory.

$ mkdir -p a/b/c/d