Linux Refresher

List of Users

vim /etc/passwd

The /etc/passwd contains one entry per line for each user (or user account) of the system. All fields are separated by a colon (:) symbol.

List of groups

vim /etc/group

Using grep and awk

Lets consider an example of finding the process id of nginx server