Reputation
4,552
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 10 19
Newest
 Mortarboard
Impact
~230k people reached

May
22
comment Are the states of processes which are ready and scheduled to wait “S”?
@Tim On a single-CPU machine, the only process that is actually running at the time this output is calculated is top itself, so it wasn't regarded as a helpful distinction to make. Even now you would only have one per CPU or one per core/hyperthread.
May
14
revised Unix command equivalent for OS X Finder's Duplicate Exactly
deleted 3 characters in body
May
14
revised Unix command equivalent for OS X Finder's Duplicate Exactly
deleted 3 characters in body
May
14
comment Unix command equivalent for OS X Finder's Duplicate Exactly
@StéphaneChazelas This is the typical behavior of Unix commands in this situation (for existing directory dst) and I simply felt I should explain ditto as an exception to the rule. Does pax even do it for non-existing dst?
May
14
comment Unix command equivalent for OS X Finder's Duplicate Exactly
@fd0 do you have a citation for this? In researching this question I found several articles asserting the opposite. Even if it works now I'd like to know what version it was added in.
May
14
comment rm -rf ~/.Trash/* doesn't work, Mail Attachment.eml:OECustomProperty unable remove
What happens if you open the .Trash directory in the Finder and then rename the file to a filename that doesn't contain a colon? If necessary rename .Trash to something else in the terminal in case Finder will not let you work with files that are inside the Trash folder.
May
14
revised Unix command equivalent for OS X Finder's Duplicate Exactly
added 347 characters in body
May
14
comment Unix command equivalent for OS X Finder's Duplicate Exactly
@StéphaneChazelas FYI the real command for your hypothetical apple-script-interpreter -c ... is osascript -e ....
May
14
comment Unix command equivalent for OS X Finder's Duplicate Exactly
@StéphaneChazelas I've updated my answer to use ditto, which is an OSX-specific command that takes care of this. I left in the other information for people using other Unix systems.
May
14
revised Unix command equivalent for OS X Finder's Duplicate Exactly
added 462 characters in body
May
14
comment Unix command equivalent for OS X Finder's Duplicate Exactly
@StéphaneChazelas does pax exist on OSX? I can replace my tar example with this if so. Also, does this create an archive that has to be extracted in another step? Do you know if any of these commands preserve resource forks?
May
14
revised Unix command equivalent for OS X Finder's Duplicate Exactly
added 462 characters in body
May
14
answered Unix command equivalent for OS X Finder's Duplicate Exactly
May
12
awarded  Mortarboard
May
12
comment Does bash open files in O_APPEND when using “>>” on linux?
@Kevin yes, it does. The exact wording is " If set, the file offset shall be set to the end of the file prior to each write."
May
12
awarded  Good Answer
May
12
awarded  Nice Answer
May
12
revised When to use reboot(2) vs reboot(8)
added 69 characters in body
May
11
revised When to use reboot(2) vs reboot(8)
added 228 characters in body
May
11
comment When to use reboot(2) vs reboot(8)
A) Not all distros use systemd and B) it's certainly still possible for the init system to be broken; if nothing else it could be so badly broken you need init=/bin/sh. Anyone who knows enough to reasonably recover a system like this is probably able to judge for themselves how they should bring down the system. But I'll add an edit acknowledging this.