Skip to main content
4 of 4
Added command output comparison
1.61803
  • 1.3k
  • 2
  • 15
  • 23

Unix command equivalent for OS X Finder's Duplicate Exactly

What command can reproduce this function in bash?

In Finder select File then press ⇧⌥ to make the command visible (⇧⌥⌘D).

In AppleScript it's available as

tell application "Finder" to duplicate selection with exact copy

UPDATE. I checked the birthtimes with stat.

commands comparison

1.61803
  • 1.3k
  • 2
  • 15
  • 23