I
I
Ilya Trusov2016-02-15 20:13:55
linux
Ilya Trusov, 2016-02-15 20:13:55

How to create a file and directories in its path?

Hello. How to create a file and directories (if there are none) in the path to this file.
I dug everything I knew, touch, echo, cat, there is no path creation parameter.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2016-02-15
@artgrosvil

mkdir
with the --parents option, you can create all intermediate directories if they do not exist.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question