The -R 777 is an argument to the command, so there should be a space before it Correct: chmod -R 777 [filename] Incorrect: chmod-R777 [filename]
-R 777
chmod -R 777 [filename]
chmod-R777 [filename]