- Create directory for example ‘newdir’
- Create on current working directory
mkdir newdir This will create directory in your current location. 
- Create directory in specific location. For example, /home
mkdir /home/newdir 
- Create directory in root
mkdir ~/newdir 
- Create directory into parent directory
mkdir -p /newdir 
 
- Create on current working directory
- Remove (delete) directory for example olddir
- Delete an empty directory
rmdir olddir 
- Delete both empty and non-empty directories.
- To delete an empty directory, use the -d option.
rm -d olddir 
- To delete a non-empty directory, use the -r option.
rm -r olddir 
 
- To delete an empty directory, use the -d option.
- Remove write-protected directory. Use the -f option
rm -rf olddir 
- To remove multiple directories at once
rm -r olddir1 olddir2 olddir3 
- If the directory contains lot of files, use -I option which will prompt only once before proceeding with the deletion.
rm -rI olddir 
- Remove directories with find command
find 
 
- Delete an empty directory
- Rename directory
mv /olddir /newdir 
- Copy Directory copy vmail to home
cp -R /var/vmail /home 
- Directory or file permission [Follow this]