I need to copy/move a bunch of macOS apps from some directory locations to another location. I know I can do this safely via the Finder. (By "safely" I mean that the app still starts up and works after copying/moving.)
However I would like to do this via the command line. Can I just use cp and mv like this:
$ cp -pr /path/to/old-location/myapp.app /path/to/new-location $ mv /path/to/old-location/myapp.app /path/to/new-location What about resource forks of files in the bundle? Or do other considerations warranting a better command line tool for copying/moving apps safely?
I am using macOS 10.13, High Sierra, in this particular case, but of course I'd be interested in a solution independent of the macOS version.