Syntax
$ chmod [options] <permissions> <file>Example
$ chmod 755 foo.txt
$ chmod +x cheatsheets.py
$ chmod u-x cheatsheets.py
$ chmod u=rwx,g=rx,o= cheatsheets.shChange files and directories recursively
$ chmod -R 755 my_directoryThe chmod command stands for "change mode"