Musings about technology and other neat stuff

BrT random header image

How to emulate Unix’ getent with MacOSX’s dscl

January 21st, 2008 · 1 Comment

The Unix getent command does not exist in OSX. Starting from 10.5 (Leopard), the administrative databases have changed from Netinfo to DirectoryService, and the main tool for looking things in DS is dscl (see also this article at
For example, to query a user by UID with getent, you would run:

getent passwd <uid>

With dscl, you [...]

[

Tags: · · ·