Just curious, are these two completely equivalent?
chmod +x file
chmod 0755 file
Thanks :-)
|
|
Chmod number sets the permissions to exactly that number. Chmod relative only changes the requested bits. A file whose permissions were 000 before |
|||
|
|
|
So in other words: No, they're not equivalent since 0755 contains more flags. See also: chmod man page |
|||||||||
|
|
Assuming your file was already chmod 644, then, yes, they are effectively equal. It's better to explicitly list the bits you want to set though, using something like |
|||
|
|