adding_and_removing_permissions_shorthand
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| adding_and_removing_permissions_shorthand [2016/07/25 19:02] – walkeradmin | adding_and_removing_permissions_shorthand [2017/01/12 20:10] (current) – walkeradmin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Adding and Removing Permissions Shorthand ====== | ====== Adding and Removing Permissions Shorthand ====== | ||
| + | <color darkorange> | ||
| \\ | \\ | ||
| - | \\ | ||
| - | Shorthand yes, but long brain! | ||
| \\ | \\ | ||
| \\ | \\ | ||
| Line 39: | Line 38: | ||
| \\ | \\ | ||
| chmod 777 examply.py | chmod 777 examply.py | ||
| - | | + | ls -l |
| - | | + | |
| - | | + | |
| -rwxrwxrwx 1 pi pi 4452 Jul 25 18:01 example.py | -rwxrwxrwx 1 pi pi 4452 Jul 25 18:01 example.py | ||
| - | | + | \\ |
| - | File has FULL permissions | + | \\ |
| - | | + | We just did a CHMOD 777 on a file, so: |
| + | \\ | ||
| + | File has FULL permissions | ||
| -rwxrwxrwx is -111111111 or in octal 777 | -rwxrwxrwx is -111111111 or in octal 777 | ||
| - | | + | \\ |
| + | \\ | ||
| + | Now we will revert the permissions: | ||
| + | \\ | ||
| chmod 644 example.py | chmod 644 example.py | ||
| - | | + | \\ |
| - | ls -l | + | \\ |
| - | + | Now we have used CHMOD 644, so: | |
| + | \\ | ||
| + | ls -l | ||
| -rw-r--r-- 1 pi pi 4452 Jul 25 18:01 example.py | -rw-r--r-- 1 pi pi 4452 Jul 25 18:01 example.py | ||
| | | ||
| Now our file is back to its original permissions. | Now our file is back to its original permissions. | ||
| + | \\ | ||
| + | \\ | ||
adding_and_removing_permissions_shorthand.1469473373.txt.gz · Last modified: (external edit)
