Search code examples
linuxmkdir

linux mkdir directory in directory


I need to make a hierarchie of directories but I can only use 1 command, how can I do the following?

I'm currently in the directory called 'linux', now I have to create here a directory called 'a' and in this directorie I have to create a directory called 'b'.

thnx


Solution

  • You can try:

    mkdir --parents a/b