Bird
0
0

Given the following command:

medium📝 Analysis Q4 of 15
Cybersecurity - Digital Forensics
Given the following command:
dd if=/dev/sdb of=/tmp/usb.img bs=1M count=100

What does this command do?
ACopies the first 100 megabytes from /dev/sdb to /tmp/usb.img
BCopies the entire /dev/sdb device to /tmp/usb.img
CCopies 100 blocks of 1 kilobyte each from /dev/sdb
DCreates a 100 MB empty file named usb.img
Step-by-Step Solution
Solution:
  1. Step 1: Analyze 'dd' command parameters

    'if=/dev/sdb' is input device, 'of=/tmp/usb.img' is output file, 'bs=1M' sets block size to 1 megabyte, and 'count=100' means copy 100 blocks.
  2. Step 2: Calculate total data copied

    100 blocks x 1 megabyte = 100 megabytes copied from /dev/sdb to /tmp/usb.img.
  3. Final Answer:

    Copies the first 100 megabytes from /dev/sdb to /tmp/usb.img -> Option A
  4. Quick Check:

    dd count x bs = data copied [OK]
Quick Trick: count x bs = total bytes copied by dd [OK]
Common Mistakes:
MISTAKES
  • Assuming entire device is copied without count
  • Confusing block size units
  • Thinking it creates an empty file

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Cybersecurity Quizzes