Predictive Hacks

How to Create Nested Directories in Unix

Assume that you want to create nested directories in Unix with one command. You can achieve this by adding the -p after the mkdir and then by specifying the path.

Let’s say that I want to create a directory “my_pictures” and then inside this folder to add another directory called my “my_wedding”. We can achieve that simply by typing:

mkdir -p my_pictures/my_wedding

We can confirm that the two folders have been created as expected by typing:

tree .
.
└── my_pictures
    └── my_wedding

Share This Post

Share on facebook
Share on linkedin
Share on twitter
Share on email

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

Python

Image Captioning with HuggingFace

Image captioning with AI is a fascinating application of artificial intelligence (AI) that involves generating textual descriptions for images automatically.

Python

Intro to Chatbots with HuggingFace

In this tutorial, we will show you how to use the Transformers library from HuggingFace to build chatbot pipelines. Let’s