All commands
chmod
Topic: Permissions and ownership
Program: chmod
Changes file permissions.
Package: perm
Usage
chmod [OPTION]... MODE FILE...
Description
Set the permissions of each FILE. MODE is octal (644, 4755) or symbolic: who (u, g, o, a), then +, - or =, then r, w, x, X, s, t or u, g, o to copy; several parts are joined with commas. Without who the umask holds bits back.
Options in the simulator
-
-c, --changes report each file whose mode really changes -
-f, --silent keep quiet about most errors -
-v, --verbose report every file, changed or not -
--reference=RFILE copy the mode of RFILE (a symlink counts as its target) -
-R, --recursive also change everything inside directories -
--help show this help and exit
8 more options of the real program, not in the simulator yet
-
--dereference not in the simulator yet On a real system it decides how chmod treats symbolic links; the simulator only follows links named on the command line.
-
-h, --no-dereference not in the simulator yet On a real system it decides how chmod treats symbolic links; the simulator only follows links named on the command line.
-
--no-preserve-root not in the simulator yet On a real system it protects or allows the root directory / with -R; the simulator treats / like any directory.
-
--preserve-root not in the simulator yet On a real system it protects or allows the root directory / with -R; the simulator treats / like any directory.
-
-H not in the simulator yet On a real system it decides how chmod treats symbolic links; the simulator only follows links named on the command line.
-
-L not in the simulator yet On a real system it decides how chmod treats symbolic links; the simulator only follows links named on the command line.
-
-P not in the simulator yet On a real system it decides how chmod treats symbolic links; the simulator only follows links named on the command line.
-
--version not in the simulator yet On a real system it prints the version of the program.
Where you learn it
Lessons
All commands