by which command, I can look up a user name by inputing UID,
Similarly, I can use "id user_name" to get the corresponding UID, so backwards, do I have a way to look up a user_name by the corresponding UID?
Thanks Andy |
Not sure about any such command but you can easily find it by doing:
Code:
grep "^user:" /etc/passwd|cut -f 3 -d ":" |
man id
Code:
..... |
Quote:
Andy |
Quote:
Thanks Andy |
All times are GMT -5. The time now is 08:28 PM. |