Perhaps everyone already knows this, but I just found this to be awesome:
So, I'm mucking around in /var/db/dslocal/nodes/Default/users. There's lots of users' plist files. Now, I want to see the contents of one of these so I do a
defaults nobody.plist
and in response, I get
Domain nobody.plist does not exist
Well, "that's annoying," I think to myself, knowing I'm now going to have to type the full path to the .plist to see its contents.
Not so much, as it turns out.
Instead I did a
defaults read `pwd|nobody.plist`
and out spat my plist contents.
Not sure why I never tried that before, but I did just now and it's a good one to share. Sure there's a little bit more typing but it's better than the full path, IMHO.
Cheers.
