Results 1 to 2 of 2

Thread: List Only Usernames

  1. #1
    Join Date
    Mar 2019
    Posts
    12

    List Only Usernames

    Iwant to list only users names in a Linux system byusing the /etc/passwd file.

  2. #2
    Join Date
    May 2019
    Posts
    7
    You can use the cut command which will select the specified column.
    $cat /etc/passwd | cut -d : -f 1
    Reference:https://www.poftut.com/list-users-groups-linux/

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •