find uid and gid of a file

raw

phork0.sh

1
2
3
4
5
6
7
8
9
10
11
12
#owner (user)
$ stat -c %U Makefile 
cweiske
$ stat -c %u Makefile 
1000
 
#group
$ stat -c %G Makefile 
cweiske
$ stat -c %g Makefile 
1000
 
Christian Weiske Christian Weiske
owner

History