Migrating from Linux to OSX
Thinks you might find while working on OSX but also general Unix stuff.
Tuesday, September 22, 2009
How to emulate Unix’ getent with MacOSX’s dscl
From:
http://zzamboni.org/brt/2008/01/21/how-to-emulate-unix-getent-with-macosxs-dscl/
In linux there is:
getent passwd [
uid number]
With dscl, you could do something like this:
dscl . -search /Users UniqueID [
uid number]
dscl . -read /Users/[username]
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment