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

1d
comment Can bash brace expansion be performed within quotes
Are you certain that ~ works? I know it doesn't work in quoted strings, nor after : even without quotes, but maybe CDPATH takes care of this for you.
2d
answered Where is the Programmer's manpage for the open C Function?
May
25
comment How to atomically allocate a loop device?
@AJMansfield Other than mount it, what can you do with a block device that you can't do with a file?
May
25
answered How to atomically allocate a loop device?
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