Monday, November 12, 2018

To list all users on Ubuntu

awk -F: '{ print $1}' /etc/passwd
 
(or)
 
cut -d: -f1 /etc/passwd
 
Reference 

No comments:

Post a Comment