In a Unix/Linux operating systems, chmod
is the command, which may change the access permissions to files and directories.
It works if the user has the right to change the file or directory permission.
When you use ll
or ls -l
for files, or ls -ld
for directories, you will see access permissions as 10 characters before the name of the file or directory. The first character to the left is d
for directories, and -
for files.
To understand the file permission, consider the following table.
- | rwx | rwx | rwx |
---|---|---|---|
user | group | other |