2018-10-16 05:01:16 +00:00
|
|
|
---
|
|
|
|
title: Bash chmod
|
|
|
|
---
|
|
|
|
|
|
|
|
## Bash command: chmod
|
|
|
|
|
2018-10-29 05:33:48 +00:00
|
|
|
**Change the permissions of a File/Directory**, for example `chmod u+x hello.py`. (Gives the user the permission to execute the file)
|
2018-10-16 05:01:16 +00:00
|
|
|
|
2018-11-02 15:34:54 +00:00
|
|
|
### Usage
|
|
|
|
|
|
|
|
**Change the permissions of a File/Directory**
|
|
|
|
|
|
|
|
```bash
|
|
|
|
chmod [permission] [file_names]
|
|
|
|
```
|
|
|
|
permission can be r+w or r+w+x ...etc
|
|
|
|
|
|
|
|
* r = read
|
|
|
|
* w = write
|
|
|
|
* x = execute
|
2018-10-16 05:01:16 +00:00
|
|
|
|
|
|
|
### More Information:
|
|
|
|
* [Wikipedia](https://en.wikipedia.org/wiki/Chmod)
|