Solved

How to create directories recursively using mkdir

Posted on 2010-09-09
2
519 Views
Last Modified: 2012-05-10
I need to be able to create directories recursively.
Suppose I have the following directory structure that needs to be created /release/projecta/backup_011009/uk

The directory /release/projecta exists, but the path backup_011009/uk does nto exist.

How can I use mkdir to recursively create  all directories?

Thanks in advance
0
Comment
Question by:singh101
2 Comments
 
LVL 14

Accepted Solution

by:
sentner earned 500 total points
ID: 33638799
mkdir -p /release/projecta/backup_011009/uk
0
 

Author Closing Comment

by:singh101
ID: 33638834
Thanks for the quick response
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now