How to create a directory and give permission in single command in Linux?
I have to create lots of folder with full permission 777.
777
When the directory already exist:
mkdir -m 777 /path/to/your/dir
When the directory does not exist and you want to create the parent directories:
mkdir -m 777 -p /parent/dirs/to/create/your/dir