David C. Rankin said the following on 02/27/2012 07:53 PM:
and if it is just a copy of 'files' on a partition or drive-to-drive (on the local machine) without the MBR or partition boundary information, good 'ole:
cp -a
works just fine.
Well maybe. You might want to add a recursion and that still wont copy hidden files. You could run multiple commands with cp -ra ${SRC}/* ${DST} cp -ra ${SRC}/.[^.]* ${DST} or you could turn on the globbing of hidden files: • Set shopt dotglob option to enable. (shopt -s dotglob) • Copy hidden files and folder. • Set shopt dotglob option to disable. See the man page for BASH for details (that's RTFM or 'go google') -- Opportunity is missed by most people because it is dressed in overalls and looks like work. Thomas A. Edison -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org