dd 를 사용해서 파일의 일부를 특정 부분부터 원하는 양을 자유롭게 복사할 수 있는 방법이 있다.
This should do it (on gnu dd):
dd if=somefile bs=4096 skip=1337 count=31337000 iflag=skip_bytes,count_bytes
In case you are using seek=
as well, you may also consider oflag=seek_bytes
.
From info dd
:
`count_bytes'
Interpret the `count=' operand as a byte count, rather than a
block count, which allows specifying a length that is not a
multiple of the I/O block size. This flag can be used only
with `iflag'.
`skip_bytes'
Interpret the `skip=' operand as a byte count, rather than a
block count, which allows specifying an offset that is not a
multiple of the I/O block size. This flag can be used only
with `iflag'.
`seek_bytes'
Interpret the `seek=' operand as a byte count, rather than a
block count, which allows specifying an offset that is not a
multiple of the I/O block size. This flag can be used only
with `oflag'.
Ps: I understand this question is old and it seems these flags were implemented after the question was originally asked, but since it's one of the first google results for a related dd search I did, I though it would be nice to update with the new feature.
'Eureka > Linux' 카테고리의 다른 글
[Tip] How to install CorsairLink for Linux (0) | 2018.01.07 |
---|---|
[Tip] How to install eXtensible ARchiver (xar) in linux (0) | 2017.07.27 |
[Solution] You must choose a longer password (0) | 2014.11.20 |
[Tip] How to Install Safety NVIDIA Graphics Driver in Linux (0) | 2014.11.20 |
[Solution] How to Fix "E: Sub-process /usr/bin/dpkg returned an error code (1)" (2) | 2014.10.27 |
[Tip] How to Change Display Resolutions in Linux (0) | 2014.10.26 |
[Tip] How to Change Keyboard repeat delay in linux (0) | 2014.10.26 |
[Tip] How to get make build time (0) | 2014.10.08 |