chmod 777To apply chmod 777 recursively to a folder and all its contents, you can use the -RUsing chmod 777 file