make permission dir linux code example
Example 1: linux give permission to folder
sudo chmod -R a+rwx /path/to/folder
Example 2: linux create directory with permissions
mkdir –m777 DirM
sudo chmod -R a+rwx /path/to/folder
mkdir –m777 DirM