How do I list the owners and privileges for a directory?

I'd like to know how exactly I can see the privileges and owners for a directory

2 Replies

hi! You can do this by running

ls -l in the directory of your choosing

alternatively, you can do ls -l /home/user/my-dir-name

Greetings @mmckenna,

@grump is correct in using ls -l as described. You can also use the -a switch to see hidden files. Like so:

$ ls -la

If you are feeling lazy and don't want to type that every time, you can always make an alias.

$ alias ls='ls -la'

You can see our full guide on file permissions here

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct