Change all files and folders permissions of a directory to 644/755

后端 未结 8 971
孤街浪徒
孤街浪徒 2020-12-04 04:20

How would I change all files to 644 and all folders to 755 using chmod from the linux command prompt? (Terminal)

8条回答
  •  时光说笑
    2020-12-04 05:03

    This can work too:

    chmod -R 755 *  // All files and folders to 755.
    
    chmod -R 644 *.*  // All files will be 644.
    

提交回复
热议问题