How to check permissions of a specific directory?

后端 未结 10 463
无人共我
无人共我 2021-01-29 17:32

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

10条回答
  •  孤城傲影
    2021-01-29 18:09

    Here is the short answer:

    $ ls -ld directory
    

    Here's what it does:

    -d, --directory
        list directory entries instead of contents, and do not dereference symbolic links
    

    You might be interested in manpages. That's where all people in here get their nice answers from.

    refer to online man pages

提交回复
热议问题