How to find a folder’s owner and group on terminal

On terminal execute:

ls -l /path/to/folder

The 3rd column is the owner and 4th is group

 

Stat command

stat /path/to/folder

Uid is the owner/user
Gid is the group

stat -c "%U %G" /path/to/folder

%U User/Owner
%G Group

Leave a Comment

Your email address will not be published. Required fields are marked *