chmod 777chmod 777 -R .* ..[!.]* Bash has this command. shopt -s dotglob to also include hidden files in commands (shopt -u dotglob to disable that behaviour) if you want to stick toTo apply chmod 777 to all the files and subfolders within the folder, you can use the find command in combination with the chmod command.