1
vote
1answer
482 views

convert timestamp to formatted time OSX

I had this working on Ubuntu but I'm now trying to run the script on OSX but it seems that the formatting of date is different. Originally I had: date -d "$MODDATE" +%F" "%H":"%M where $MODDATE is ...
3
votes
1answer
6k views

chmod: What does the `+a` parameter mean?

I was following a tutorial and it told me to run sudo chmod +a "SOME_PARAMS" some/dir I was surprised to see that fail telling me chmod: invalid mode: `+a' So I wonder: What does the +a mode ...
4
votes
1answer
797 views

Printing the current date/time with sub-second precision

GNU date(1) understands the %N format spec, which outputs nanoseconds, so: $ date +%H:%M:%S.%N outputs 19:10:03.725196000 BSD date doesn't understand %N. How can I print the current time with ...
22
votes
2answers
5k views

Where does Mac OS X come from?

Discussing with Mac owners, I got several versions of where Mac OS X comes from. It is known to have some root in BSD, but how much, and where? Some say that Mac OS X has a FreeBSD kernel, with all ...