how to give a folder permission in linux code example
Example 1: how to give permission to a user in linux on a folder
sudo chmod u+w myfolder
Example 2: linux create directory with permissions
mkdir –m777 DirM
sudo chmod u+w myfolder
mkdir –m777 DirM