Berkeley Software Distribution (BSD) Question:

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

Tweet Share WhatsApp

Answer:

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.

Download BSD PDF Read All 11 BSD Questions
Previous QuestionNext Question
Explain the difference between SIGHUP, SIGUSR1 and SIGUSR2?How did you find initial support for a new distro?