Linux Magazine for one liners

From: Brian E. Lavender (brian@brie.com)
Date: Wed Aug 11 1999 - 09:50:44 PDT


Free copy for one liner at tonights meeting

I have some copies of Linux Magazine. If you have a
cool one liner to give at the beginning of the meeting,
I have a free copy of Linux Magazine for you. Here's an
example:

tar cf - .| (cd /var/named/; tar xfp -)

This command will copy files from one directory to another
while maintaining permissions and owner/group ownership. It
works across NFS mounts too.

cp -a

works similar to this. The tar command is more bullet proof (IMHO)

brian

-- 
Brian Lavender
http://www.brie.com/brian/



This archive was generated by hypermail 2b29 : Fri Feb 25 2000 - 14:29:06 PST