[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: Preloading capability in linux ??///
>>>>> "Anmol" == Anmol Khirbat <anmol@xxxxxxxxxxx> writes:
Anmol> On Fri, 24 Nov 2000, Anand Kumria wrote:
>> On Thu, Nov 23, 2000 at 09:04:32AM -0800, Anmol Khirbat wrote:
>> > On Thu, 23 Nov 2000, Anand Kumria wrote: > > > Do you want to
>> create a bit-for-bit disk copy/image? I'd recommend > > dd(1)
>> then. > > What does dd do that cat can't do ?
>>
>> $ man 1 cat | head cat - concatenate files and print on the
>> standard output $ man 1 dd | head dd - convert and copy a file
>>
>> dd can read and write a file in blocks thus speeding up the
>> transfer whereas cat relies on the underlying C library to do
>> it I/O.
Anmol> Show me a program that doesn't use the "underlying C
Anmol> library" to do I/O.
I think he meant it uses the C buffered I/O functions (fopen & co).
Unbuffered I/O functions (open & co) in C on Linux are just wrappers
around the system calls.
Regards,
-- Raju
>> dd can also convert from ascii to ebcdic, and do quite a few
>> other things. the man page is illuminating.
Anmol> Whats all this got to do with a "bit-for-bit" disk copy?
Anmol> bye :) Anmol