RE: Witch cp ?



Thanks very much; I had the feeling that *.* isn't what I wanted.

Aaron

-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Herta Van den Eynde
Sent: Thursday, March 16, 2006 6:40 PM
To: General Red Hat Linux discussion list
Subject: Re: Witch cp ?

Linux doesn't really use file extensions. You can create a perfect text
file and call it "thisismytextfile" or "thisismytextfile.txt". Both
will be recognized as "ASCII text".

However, if you use *.*, only files that have a dot will be copied.
You'll miss files without dots, including hidden files. In addition,
softlinks will be copied as files.

If your /srcpartition contains sockets, Manuel's dd is a safe bet. (You
can check by means of "find /srcpartition -type s".) If the partition
consists of regular file, I prefer a trick I learned from the Tru64
manpages:

# cd fromdir; tar cf - . | (cd todir; tar xpf -)

because I have the impression it runs faster. (Haven't really timed it,
though.)

Kind regards,

Herta


Bliss, Aaron wrote:
I need to copy an entire partition and all it's subdirectories to a
new partition; do I want cp -rp /srcpartiton/* /destpartiton/ or cp
-rp
/srcpartiton/*.* /destpartiton/ ? Thanks for your help.

www.preferredcare.org
"An Outstanding Member Experience," Preferred Care HMO Plans -- J. D.
Power and Associates

Confidentiality Notice:
The information contained in this electronic message is intended for
the exclusive use of the individual or entity named above and may
contain privileged or confidential information. If the reader of this
message is not the intended recipient or the employee or agent
responsible to deliver it to the intended recipient, you are hereby
notified that dissemination, distribution or copying of this information
is prohibited. If you have received this communication in error, please
notify the sender immediately by telephone and destroy the copies you
received.

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



--
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list



Relevant Pages

  • Re: Help with getting tomcat 5.5 working on a redhat es 4 box
    ... On 11/9/06, Bliss, Aaron wrote: ... > I'm having some trouble getting tomcat 5.5 to work on a redhat es 4 ... The information contained in this electronic message is intended for the ... not the intended recipient or the employee or agent responsible to deliver ...
    (RedHat)
  • Re: Ray Martinez
    ... Aaron, this discussion is for mature persons. ... Is it not written that Christians should return good for evil, (Matt 5:43-48, ... For shame, Ray-ray! ... email to oshea dot j dot j at gmail dot com. ...
    (talk.origins)
  • Re: Getting to view a house dust mite?
    ... >Granite Bay, CA 95746 ... >gary@microtechnics dot com ... How big is the mite? ... Aaron ...
    (sci.techniques.microscopy)
  • Re: Top rates ?
    ... How much would a PlanAPO degrade in value ... gary@microtechnics dot com ... Prev by Date: ...
    (sci.techniques.microscopy)