Answers

Question and Answer:

  Home  BSD

⟩ You are told that the permissions of a file are 645. Quick, how do you calculate what it means?

The permissions value are always 4 for read, 2 for write, 1 for execute. The three numbers are always for owner, group, and everybody on the system. Therefore 645 means: owner - read and write, group - read only, everybody - read and execute. You’ll rarely see such a permission set, but for interview question it might just work.

 230 views

More Questions for you: