Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Linux by (36.8k points)

Why I am not supposed to do something like this?

 mkdir folder/subfolder/ 

To achieve this I have to do:

mkdir folder

cd folder

mkdir subfolder

Is there a better way to do it?

1 Answer

0 votes
by (18.4k points)

You can use the below command:

mkdir -p folder/subfolder

The -p causes parent directories to be created if necessary.

 To know about Linux join the Linux training

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Feb 4, 2021 in Linux by blackindya (18.4k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...