Sometimes we have to copy a directory with all contents and we have to preserve all permissions on content of directory.
This can be easily done using 'tar' command. For this issue command
cd source && tar -cf - . | (cd destination && tar -xpvf -)
wheresource : Directory which you want to copy
destination : directoty where you want to move

1 comment:
cp -a is much more efficiet. :-)
Post a Comment