Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, i tried a dd if=file1 of=file2 it copies the file1 to file2 and displays output like, " 1+1 records in 1+1 records out " what's this mean? Thx...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757

    Thumbs up doubt on dd command output


    Hi,
    i tried a dd if=file1 of=file2
    it copies the file1 to file2
    and displays output like,
    "
    1+1 records in
    1+1 records out
    "
    what's this mean?
    Thx
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    1+1 records in
    1+1 records out
    for dd command, 1 unit = 512 bytes.

    1+1 means filesize of file1 is greater than 512 byte and less than 1024. copy a file having size around 2048 bytes. output will be:

    4+1 records in
    4+1 records out.

    512 * 4 = 2048.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,757

    Smile

    Thanks casper
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •