[Ilugc] One Day One GNU/Linux Command (MKDIR)

  • From: sbharathi@xxxxxxxxxxxxx (Bharathi Subramanian)
  • Date: Tue Jun 24 15:36:07 2008

One Day One GNU/Linux Command
=============================

mkdir -- MaKe DIRectories.

Summary :

mkdir create the directories with the specified names, only if they
do not already exist.

Examples :

$ mkdir dir1 -- Create a dir1, if dir1 is NOT an existing file or
                a directory.

$ mkdir dir1 dir2 dir3 -- Create 3 directories.

$ mkdir -m 744 dir1 -- Create a dir1 with specified permission mode.

$ mkdir -p dir1/dir2/dir3 -- Make any missing parent directories for
                             each argument. Suppose if dir1 or dir2 is
                             NOT exist, then that dir will be created
                             before creating the dir3.

$ mkdir -v dir1/dir2/dir3 -- Print a message for each created dir.

Read : man mkdir

HTH :)
-- 
Bharathi S

Other related posts:

  • » [Ilugc] One Day One GNU/Linux Command (MKDIR) - Bharathi Subramanian