Reading ls -l
What this is. Every file records who is allowed to do what with it. ls -l shows that as a ten character string at the start of each line, and it looks like noise until you know it is four fields joined together.
`
-rwxr-xr--
`
The first character is the kind: - for a file, d for a directory.
The next three are what the owner may do.
The next three are the group.
The final three are everyone else.
✦ Execute means something different on a directory
On a file, x means this can be run as a program. On a directory, x means you may enter it and reach things inside. A directory with r but not x lets you list the names but not open anything within, which produces genuinely confusing permission denied errors on files that look perfectly readable.
Mark this lesson complete
Signed in, your progress follows you to every device.