LINUX DD COMMAND
The dd command stands for “data duplicator” and used for copying and converting data.
dd if=<source file name> of=<target file name> [Options]
if=<source> –This is a source from where you want to copy data and ‘if’ stands for input-file.
of=<destination> –This is a source from where you want to write/paste data and ‘of’ stands for output-file.
[options] –These options include, how fast data should be written, what format etc.
1: Clone one hard disk to another hard disk.
dd if=/dev/sda of=/dev/sdb
2: Wipe/delete content of a disk so that it will be empty for some one to use it.
dd if=/dev/zero of=/dev/sdb
3. We can even create ISO files from a CD-ROM or DVD-ROM using dd command.
dd if=/dev/dvd of=/opt/my_linux_image.iso
No comments:
Post a Comment