Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] The Mother of All (bash) Commands
- Date: Mon, 17 Mar 2008 21:04:48 -0400 (EDT)
- From: Joe Larabell <fred62@example.com>
- Subject: Re: [tlug] The Mother of All (bash) Commands
- References: <op.t756gdbtp3esx5@mail.gol.com> <20080317174630.ae60fceb.gstewart@bonivet.net> <200803171322.13584.daniel.ramaley@drake.edu>
Closely related is a fast and easy way to copy directory trees while preserving permissions: (cd /src ; tar -cf - .) | (cd /dst ; tar -xvpf -)
So long as dst isn't a symlink to src ;-)...
(Yes, I did that once without thinking. It resulted in a tree full of zero-length files -- with permissions properly preserved. Besides, if both paths are on the same machine, doesn't 'cp -a' do just as well?)
--- Joseph L (Joe) Larabell Never fight with a dragon http://larabell.org for thou art crunchy and goest well with cheese.
- Follow-Ups:
- Re: [tlug] The Mother of All (bash) Commands
- From: Josh Glover
- Re: [tlug] The Mother of All (bash) Commands
- From: Daniel A. Ramaley
- References:
- [tlug] The Mother of All (bash) Commands
- From: Greg Thomson
- Re: [tlug] The Mother of All (bash) Commands
- From: Godwin Stewart
- Re: [tlug] The Mother of All (bash) Commands
- From: Daniel A. Ramaley
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Re: Gentoo ebuild for XEmacs-21.5
- Next by Date: Re: [tlug] The Mother of All (bash) Commands
- Previous by thread: Re: [tlug] The Mother of All (bash) Commands
- Next by thread: Re: [tlug] The Mother of All (bash) Commands
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links