How to copy a disk image into an USB memory

#!/bin/bash

# Source file path
source_file="/path/to/source/image.iso"

# Destination device (change to your corresponding usb device)
destination_device="/dev/sdb"

# Copy the file to the USB
sudo dd if="$source_file" of="$destination_device" bs=512k

echo "Disk image file copied to USB successfully!"