Cheatsheet: Difference between revisions
Content added Content deleted
Line 865: | Line 865: | ||
* Other default permissions are 600 or 644 |
* Other default permissions are 600 or 644 |
||
* For executable files, the equivalent settings would be 700 and 755 |
* For executable files, the equivalent settings would be 700 and 755 |
||
;umask |
|||
* While creating a file or directory, by default a set of permissions are applied. |
|||
* These default permissions are viewed by umask command. |
|||
* For safety reasons all Unix systems doesn't provide execution permission to newly created files. |
|||
* The 'mkdir -m' command can be used to set the mode. |
|||
mkdir -m 777 dir1 |
|||
mkdir -m 000 dir2 |
|||
* Preserves the permissions and time stamps from source file: |
|||
cp -p list dupli.txt |
|||
== Commands == |
== Commands == |