How to change permissions for a folder and its subfolders/files in one step?

后端 未结 19 1797
情歌与酒
情歌与酒 2020-11-22 13:20

I would like to change permissions of a folder and all its sub folders and files in one step (command) in Linux.

I have already tried the below command but it works

19条回答
  •  悲哀的现实
    2020-11-22 14:02

    You can use -R with chmod for recursive traversal of all files and subfolders.

    You might need sudo as it depends on LAMP being installed by the current user or another one:

    sudo chmod -R 755 /opt/lampp/htdocs
    

提交回复
热议问题