Рет қаралды 27,576
The dd command in Linux is a utility for copying and converting files and has many practical uses. In this video we go over a few of the most important ones.
Support the channel:
BTC - 3NzWDDH3n5PsBKqWJyAb7rvsGvJKxcAPFv
ETH - 0xB09212235c648a448F0E7eEB416ce5652362c772
Follow me:
SecureRandom on KZbin -
/ @securerandom5420
SecureRandom on LBRY / Odysee -
odysee.com/@Se...
----------------------------------------------------------------
Commands used in this video
Wipe a drive
dd if=/dev/urandom of=/dev/sdb bs=1M conv=noerror
for n in `seq 7`; do dd if=/dev/urandom of=/dev/sdb bs=1M conv=notrunc,noerror; done
Backing up and restoring an entire disk or a partition
dd if=/dev/sdb of=/dev/sdc bs=1M conv=noerror
Creating a compressed disk image
dd if=/dev/sdb | gzip -c {right angle bracket} /tmp/testdisk.img.gz
dd if=/dev/sdb | gzip -c - | ssh user@local dd of=image.gz
gzip -dc /tmp/testdisk.img.gz | dd of=/dev/sdb
Create a bootable USB Drive
dd if=~/Downloads/linuxmint-20-xfce-64bit.iso of=/dev/sdb bs=1M
File carving
dd if=/dev/shm/test.txt of=/dev/shm/test2.txt skip=5 bs=1
dd if=/dev/shm/test.txt of=/dev/shm/test2.txt skip=5 bs=1 count=8