chmod 777 -R on existing path getting chmod: -R: No such file or directory
问题 I wanted to grant operation access using sudo chmod 777 -R <path> on mac, I double checked the given path, and it's existing and no typos, but I still got chmod: -R: No such file or directory . Any ideas about why I'm getting this error? 回答1: If you look at the synopsis from the man page for chmod you will se the following: SYNOPSIS chmod [OPTION]... MODE[,MODE]... FILE... chmod [OPTION]... OCTAL-MODE FILE... chmod [OPTION]... --reference=RFILE FILE... The -R flag should be used before the