I know that using ls -l \"directory/directory/filename\"
tells me the permissions of a file. How do I do the same on a directory?
I could obviously use
$ ls -ld directory
ls
is the list command.
-
indicates the beginning of the command options.
l
asks for a long list which includes the permissions.
d
indicates that the list should concern the named directory itself; not its contents. If no directory name is given, the list output will pertain to the current directory.