Change permissions with chmod



Last revision August 3, 2004

Table of Contents:
  1. The Unix file system
  2. The directory tree
  3. File ownership and permissions
    1. chmod
    2. Access Control Lists
  4. Files as units
  5. Examining file contents
  6. Other commands
  7. Standard Files and Data Pipes

The chmod command is used to change the permission settings on a file or directory. Its syntax is:

chmod permission filename(s)

Multiple filenames can be specified in one command and permissions for all will be changed at once. Also, an entire directory tree (a directory and all its files and subdirectories, and all their files and subdirectories, recursively) can be changed at once using the -R option as the first argument, listed before the permission or filename arguments. See the on-line manual entry for details.

The permission argument can take two forms:

<--Previous Overview Next-->