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