Contents
The chmod (short for change mode) command is used to manage file system access permissions on Unix and Unix-like systems. There are three basic file system permissions, or modes, to files and directories: read (r) write (w)
What is use of chmod command in Unix?
In Unix-like operating systems, the chmod command is used to change the access mode of a file. The name is an abbreviation of change mode.
How does chmod work?
To change directory permissions in Linux, use the following:
- chmod +rwx filename to add permissions.
- chmod -rwx directoryname to remove permissions.
- chmod +x filename to allow executable permissions.
- chmod -wx filename to take out write and executable permissions.