Friday, 11 May 2012

"mkdir" command in linux

'mkdir' command used for creating one or more directories .


For creating 
mkdir [options] directories


options means whether you giving permission for the directories and adding help messages and soon.
options                 explanation
-m                   giving access mode 
 -v                    Print help message for each directory created

Example:


Creating simple Directories
     1   mkdir /home/test /backup


Creating simple Directories with access mode
     1   mkdir -m 777 /home/test /backup
          Giving full access to /home/test /backup
     2   mkdir -m 666 /home/test /backup
         Giving read and write permission to /home/test /backup

No comments:

Post a Comment