dd

All posts tagged dd by Linux Bash
  • Posted on
    Featured Image
    The blog article delves into using the Linux `dd` command for managing input/output operations on serial ports like `/dev/ttyUSB0`. Originally for data copying and conversion, `dd` can efficiently handle reading from and writing to serial devices once they are configured using `stty` for specific settings such as baud rate and parity. It includes commands for setting up and executing these operations, with additional examples for continuous reading and file transfers to a serial device, underscoring `dd`'s versatility in direct hardware interactions.
  • Posted on
    Featured Image
    The article discusses using the `dd` command to split files into fixed-size chunks in Linux when `split` is unavailable. It explains the importance of specifying the correct byte size, counts, and offsets with `dd` to manage file data accurately in loops for different chunks. Examples of Bash scripts are provided to demonstrate how to split files and extract specific portions efficiently. The piece emphasizes `dd`'s versatility and caution to avoid data loss.
  • Posted on
    Featured Image
    The blog article discusses the `dd` command in Linux, specifically highlighting the use of `conv=notrunc` to modify sections of a file without erasing its entirety. It details practical applications such as updating text in a file while preserving the rest of the data and emphasizes how `dd` is crucial for managing large datasets and precision file alterations.
  • Posted on
    Featured Image
    The article discusses how to use `dd skip=` for `mmap`-like file reading in Linux. It explains `mmap` as a technique mapping files into memory for efficient access, contrasting it with `dd`, which doesn't use `mmap` but can mimic aspects by skipping to specific file parts, useful in large data sets. An example command provided is `dd if=largefile.bin of=segment.bin bs=1M skip=10 count=5`, demonstrating how to access file segments directly.