Site menu

CodeCook.io

  • Languages
    • C
    • C++
    • CSS
    • Git
    • HTML
    • Java
    • JavaScript
    • jQuery
    • PHP
    • Python
    • Ruby
    • Scala
  • user

Command line - List all users

List all users on operating system.

0
489
  • Share on Facebook
  • Share on Google+
  • Share on Twitter
awk -F':' '{ print $1}' /etc/passwd
c

Notes

  • Lists both general and login users

last update: Oct. 27, 2014

Advertisement

This project is hosted on DigitalOcean, try it and support us

Related concept

  • Change user
  • List groups
  • List group users
  • Add user to group
  • Add user
  • Remove user

Random task

  • Open debug command line
  • Loop until condition is true
  • Rollback local commit
  • Key value key existence test
  • Test list of booleans all true
  • Blog
  • About
  • License