Linux "chmod" Command Line Options and Examples
change permissions of a file

This manual page documents the GNU version of chmod. chmod changes the file mode bits of each given file according to mode, which can be either a symbolic representation of changes to make, or an octal number representing the bit pattern for the new mode bits. The format of a symbolic mode is [ugoa.


Usage:

chmod [OPTION]... MODE[,MODE]... FILE...
    chmod [OPTION]... OCTAL-MODE FILE...
    chmod [OPTION]... --reference=RFILE FILE...




Command Line Options:

-c
like verbose but report only when a change is made
chmod -c ...
-f
suppress most error messages
chmod -f ...
-v
output a diagnostic for every file processed
chmod -v ...
--no-preserve-root
do not treat '/' specially (the default)
chmod --no-preserve-root ...
--preserve-root
fail to operate recursively on '/'
chmod --preserve-root ...
--reference
use RFILE's mode instead of MODE values
chmod --reference ...
-R
change files and directories recursively
chmod -R ...
--help
display this help and exit
chmod --help ...
--version
output version information and exitEach MODE is of the form '[ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=][0-7]+'.AUTHORWritten by David MacKenzie and Jim Meyering.REPORTING BUGSGNU coreutils online help: <http://www.gnu.org/software/coreutils/>Report chmod translation bugs to <http://translationproject.org/team/>COPYRIGHTCopyright © 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
chmod --version ...