File Permissions in Linux

Associate
Joined
24 Oct 2008
Posts
582
Location
South London
I have just started to use Linux and after using windows for as long as I can remember am having trouble understanding file permissions. If someone were to give you this on paper can someone explain this for me please?

--w-r-x--x

I thought I understood the permissions till I saw the double -- that threw me off. I was thinking if it was -w-r-x would that mean no access to read write or to execute the file?

If someone could give me an explanation of the permission I wrote above would be greatly appreciated.
 
Thanks for that think I understand it a bit better now so for the one I wrote above. Would it be

File user can read/write/execute, group can exec no one else can do anything?
 
Ok another question

the hyphen in between r and x now I can understand now that the hyphen after the write means now its moving to group permissions but why the hyphen in between the r and x? wouldn't it be easier to just do --w-rx--x?
 
Back
Top Bottom