Re: how copy file on linux?

Liste des GroupesRevenir à cu programmer 
Sujet : Re: how copy file on linux?
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.unix.programmer
Date : 27. Jun 2024, 05:07:19
Autres entêtes
Organisation : None to speak of
Message-ID : <87msn7vxjc.fsf@nosuchdomain.example.com>
References : 1 2 3
User-Agent : Gnus/5.13 (Gnus v5.13)
Lew Pitcher <lew.pitcher@digitalfreehold.ca> writes:
(Followup set to comp.unix.programmer)
>
On Wed, 26 Jun 2024 15:35:00 -0700, Keith Thompson wrote:
Thiago Adams <thiago.adams@gmail.com> writes:
How to copy a file on linux keeping the original file information?
timestamp etc?
>
Or in other words the equivalent of CopyFileA from windows.
 
comp.unix.programmer is likely to give you better answers.  I don't
think POSIX defines any functions that copy files.
>
No, AFAIK, POSIX doesn't define an "all-in-one" file copy function.
However, Linux (the OS Thiago asks about) defines a number of them.
[...]

What file copy functions does Linux define?  I know there are plenty of
file copy *commands*, and those commands can be invoked from a C
program.  Is that what you meant?

(By "Linux", I presume we're referring to Linux-based OSs like Debian et
al, not to the kernel.  Trying not to trigger a discussion of "Linux"
vs. "GNU/Linux".)

--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */

Date Sujet#  Auteur
27 Jun 24 * Re: how copy file on linux?3Keith Thompson
27 Jun 24 `* Re: how copy file on linux?2Lew Pitcher
28 Jun 24  `- Re: how copy file on linux?1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal