Issue
How to create a directory and give permission in single command in Linux?
I have to create lots of folder with full permission 777
.
Commands
mkdir path/foldername
chmod 777 path/foldername
I don't like to create and give permission in two commands. Can I do this in single command?
Solution
According to mkdir's man page...
mkdir -m 777 dirname
Answered By - alex Answer Checked By - Marilyn (WPSolving Volunteer)