How do I list users in Unix?

Đức Lưu

New member
How do I list users in Unix?
Answer
Command to check list of users in Unix
  1. Understanding file format. Consider the last line: vnstat:*:284:284:vnStat Network Monitor:/nonexistent:/usr/sbin/nologin. …
  2. How to just display a list of user names. Use the cut command as follows: …
  3. How do I search for a given user name such as vivek. Use the grep command as follows:
 

Tìm kiếm

Back
Top