Google Interview Question: How many bits is the access f... | Glassdoor.co.uk

Interview Question

Technical Program Manager, Site Reliability Engineering Interview London, England

How many bits is the access flags of a file?

Answer

Interview Answer

3 Answers

0

Traditional Unix permissions are broken down into: so answer is 3
read (r) write (w) execute file/access directory (x)
Each of those is stored as a bit, where 1 means permitted and 0 means not permitted.

Interview Candidate on 18 Apr 2018
2

I'd say 9, since the three bits you have mentioned have to be multiplied by the three user groups (owner, group, others). rwxrwxrwx

Anonymous on 24 Dec 2018

One or more comments have been removed.
Please see our Community Guidelines or Terms of Service for more information.

Add Answers or Comments

To comment on this, Sign In or Sign Up.