Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to create directories recursively using mkdir

Posted on 2010-09-09
2
Medium Priority
?
545 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 2000 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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

926 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