Forrest logo
tool overview
On this page you find all important commands for the CLI tool chmod. If the command you are looking for is missing please ask our AI.

chmod

In Unix and Unix-like operating systems, chmod is the command and system call used to change the access permissions and the special mode flags (the setuid, setgid, and sticky flags) of file system objects (files and directories). Collectively these were originally called its modes, and the name chmod was chosen as an abbreviation of change mode.

List of commands for chmod:

  • chmod:tldr:4b160 chmod: Give [o]thers (not in the file owner's group) the same rights as the [g]roup.
    $ chmod o=g ${filename}
    try on your machine
    explain this command
  • chmod:tldr:67e2c chmod: Remove e[x]ecutable rights from the [g]roup.
    $ chmod g-x ${filename}
    try on your machine
    explain this command
  • chmod:tldr:9e861 chmod: Recursively give [a]ll users [r]ead permissions to files and e[X]ecute permissions to sub-directories within a directory.
    $ chmod -R a+rX ${path-to-directory}
    try on your machine
    explain this command
  • chmod:tldr:b863d chmod: Give the [u]ser rights to [r]ead and [w]rite to a file/directory.
    $ chmod u+rw ${filename_or_directory}
    try on your machine
    explain this command
  • chmod:tldr:bc0c6 chmod: Remove all rights from [o]thers.
    $ chmod o= ${filename}
    try on your machine
    explain this command
  • chmod:tldr:ddd87 chmod: Change permissions recursively giving [g]roup and [o]thers the ability to [w]rite.
    $ chmod -R g+w,o+w ${path-to-directory}
    try on your machine
    explain this command
  • chmod:tldr:f46cd chmod: Give [a]ll users rights to [r]ead and e[x]ecute.
    $ chmod a+rx ${filename}
    try on your machine
    explain this command
  • chmod:tldr:f8e3f chmod: Give the [u]ser who owns a file the right to e[x]ecute it.
    $ chmod u+x ${filename}
    try on your machine
    explain this command
  • ssh:files:user-rights:set Sets the file permissions to read and write for the user only, and no permissions for other users.
    $ chmod 600 ~/.ssh/id_rsa
    try on your machine
    explain this command
  • wordpress:config:file-permissions Set the correct file permission
    $ chmod -R 755 wp-content/
    try on your machine
    explain this command
tool overview