Login
From:
learnbyexample
(Uncensored)
subscribe
CLI tip 14: specify permissions during directory creation
https://learnbyexample.github.io/tips/cli-tip-14/
links
backlinks
Roast topics
Find topics
Find it!
You can use mkdir -m instead of creating a directory with mkdir first and then changing the directory permissions with the chmod command. The argument to the -m (mode) option uses the same syntax as the chmod command.