List Only Usernames

Discussion in 'Linux' started by Gabriel9999, May 26, 2020.

Tags:
  1. Gabriel9999

    Gabriel9999 MDL Novice

    Mar 11, 2019
    37
    5
    0
    Iwant to list only users names in a Linux system byusing the /etc/passwd file.
     
  2. verndog

    verndog MDL Junior Member

    May 3, 2010
    85
    13
    0
    Code:
    cat /etc/passwd|cut -d ":" -f1