Creating Multi level directory in Linux

Linux doesn't create a directory at an unknown path. For example- If I want to create a directory firstLevel/secondLevel, firstLevel should already exists. Otherwise, give -p option with mkdir like this:

mkdir -p firstLevel/secondLevel

This will create firstLevel first, and then secondLevel under it.

No comments:

Post a Comment

Scheduling Repeating Local Notifications using Alarm Manager

Learn about Scheduling Repeating Local Notifications using Alarm Manager in this post .