Scroll to navigation

CHMOD(1) User Commands CHMOD(1)


chmod - manual page for chmod 8.32


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


Change the mode of each FILE to MODE. With --reference, change the mode of each FILE to that of RFILE.

like verbose but report only when a change is made
suppress most error messages
output a diagnostic for every file processed
do not treat '/' specially (the default)
fail to operate recursively on '/'
use RFILE's mode instead of MODE values
change files and directories recursively
display this help and exit
output version information and exit

Each MODE is of the form '[ugoa]*([-+=]([rwxXst]*|[ugo]))+|[-+=][0-7]+'.

GNU coreutils online help: <> Report any translation bugs to <> Full documentation <> or available locally via: info '(coreutils) chmod invocation'


Written by David MacKenzie and Jim Meyering.


Copyright © 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

August 2022 GNU coreutils 8.32