Logo
Web01
Ch4os1@web01:~/commands/chmod
← View all bash commands

chmod

Change file permissions.

Examples

chmod 755 /path/to/file
              

Set the permissions of 'file' to read, write, and execute for the owner, and read and execute for group and others.

chmod  644 /path/to/file
              

Set the permissions of 'file' to read and write for the owner, and read-only for group and others.

Notes

This command affects only the current shell session.