chmod 777 a directory code example Example 1: chmod 777 chmod -R 777 directory Example 2: chmod 777 command in linux chmod -R 777 your_directory_name