chmod 777To apply chmod 777 to all the files and subfolders within the folder, you can use the find command in combination with the chmod command.You can type chmod 777, leave a space after it, and then drag the file or folder from Finder into Terminal. Terminal will fill in the correct path for you.