|
| 1 | +## Python CHMOD Simplifier |
| 2 | + |
| 3 | +### This script converts symbolic representation of CHMOD permissions to it's numerical equivalent, and the Numerical representation of CHMOD permissions to its Symbolic equivalent as well. |
| 4 | +Example (numerical to symbolic representation): |
| 5 | +input: 777 |
| 6 | +output: rwxrwxrwx |
| 7 | + |
| 8 | +Example (symbolic to numerical representation): |
| 9 | +input: rwxrwxrwx |
| 10 | +output: 777 |
| 11 | + |
| 12 | +### How to use this script? |
| 13 | + |
| 14 | +1. Make sure all the requirements for the script are present in your system by running: |
| 15 | + |
| 16 | + pip install -r requirements.txt |
| 17 | + |
| 18 | +2. The script has 2 options: |
| 19 | +- Symbolic to Numerical (N) |
| 20 | +- Numerical to Symbolic (S) |
| 21 | + |
| 22 | +Pass the desired mode of conversion while executing the script |
| 23 | + |
| 24 | +3. Run the following command: |
| 25 | + python chmod_simplifier.py <representation> <mode> |
| 26 | + |
| 27 | + Replace: |
| 28 | + - <representation> with 777 or rwxrwxrwx based on your preferred mode of conversion |
| 29 | + - <mode> with either 'S' or 'N' as per the desired mode |
| 30 | + |
| 31 | +3. View output on console |
| 32 | + |
| 33 | +### Author |
| 34 | + |
| 35 | +[Schezeen Fazulbhoy](https://github.com/schezfaz) |
0 commit comments