linux find user name by id

id
uid=1004(vit) gid=1004(vit) groups=1004(vit)

getent passwd 1004
vit:x:1004:1004::/home/vit:/bin/bash

or just:
grep 1004 /etc/passwd

Leave a Reply

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