Archive for May, 2013

Copying directories with tar

This is one of those, “can’t seem to memorize something” posts… Sometimes copying files with cp is just painful. Instead: [root@sparky ~]# mkdir /tmp/newopt && mount /dev/mapper/system-opt /tmp/newopt [root@sparky ~]# ( cd /opt && tar –xattrs -cf – . ) | ( cd /tmp/newopt && tar xvfp – ) This will copy files and directories […]

Posted on May 27, 2013 at 09:48 by somedude · Permalink · Leave a comment
In: linux, linux tips, shell, solaris, solaris tips