What Does the Chmod Command Do in Unix?

What Does the Chmod Command Do in Unix?
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.
Robert Thorne
Author

Robert Thorne

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.