How to create a directory and give permission in single command

后端 未结 8 1982
日久生厌
日久生厌 2021-01-29 23:27

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

8条回答
  •  爱一瞬间的悲伤
    2021-01-30 00:05

    you can use following command to create directory and give permissions at the same time

    mkdir -m777 path/foldername 
    

提交回复
热议问题