RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

mkdir

Article Index
1. Name
2. Synopsis
3. Frequently used options
4. Media
5. Examples

1. Name

mkdir [man page] - make directories

2. Synopsis

mkdir [OPTION] DIRECTORY... 

3. Frequently used options

-m, --mode=MODE
    set permission mode (as in chmod),
    not rwxrwxrwx - umask
-p, --parents
    no error if existing, make parent
    directories as needed 

4. Media

5. Examples

Creating directory in the Linux environment is very simple task. Let's create directory named "dir1":

mkdir dir1 

mkdir - create directory
mkdir command can take more arguments. For example we can take two directories with only one command:

mkdir dir2 dir3 

mkdir - create two directories
mkdir command can also create entire directory tree. By using -p option mkdir will also create parent directories if required:

mkdir -p dir4/dir4.1 

mkdir - create parent directories
By default mkdir creates directory with permissions set by umask. To force mkdir to create directory with different permissions the -m option can be used. For example to create directory with [[chmod | permissions]] 744 we can issue following command:

mkdir -m 744 dir5 

mkdir - create directory and set permissions

Share this linux post:

Submit mkdir in Delicious Submit mkdir in Digg Submit mkdir in FaceBook Submit mkdir in Google Bookmarks Submit mkdir in Stumbleupon Submit mkdir in Technorati Submit mkdir in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download