How to create a directory and give permission in single command

后端 未结 8 1977
日久生厌
日久生厌 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-29 23:41

    install -d -m 0777 /your/dir
    

    should give you what you want. Be aware that every user has the right to write add and delete files in that directory.

提交回复
热议问题