File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ # dd
2+
3+ > 转换和复制文件。
4+ > 参考命令:` caligula ` 。
5+ > 更多信息:< https://www.gnu.org/software/coreutils/manual/html_node/dd-invocation.html > .
6+
7+ - 从 isohybrid 文件(如 ` archlinux-xxx.iso ` )创建可启动 USB 驱动器并显示进度:
8+
9+ ` sudo dd if={{路径/到/文件.iso}} of={{/dev/usb_drive}} status=progress `
10+
11+ - 以 4 MiB 块大小克隆驱动器到另一个驱动器,并在命令终止前刷新写入:
12+
13+ ` sudo dd bs=4M conv=fsync if={{/dev/源驱动器}} of={{/dev/目标驱动器}} `
14+
15+ - 使用内核随机驱动程序生成具有指定数量随机字节的文件:
16+
17+ ` dd bs={{100}} count={{1}} if=/dev/urandom of={{路径/到/随机文件}} `
18+
19+ - 测试磁盘的写入性能:
20+
21+ ` dd bs={{1M}} count={{1024}} if=/dev/zero of={{路径/到/1GB文件}} `
22+
23+ - 创建系统备份,保存为 IMG 文件(稍后可通过交换 ` if ` 和 ` of ` 参数恢复),并显示进度:
24+
25+ ` dd if={{/dev/驱动器设备}} of={{路径/到/文件.img}} status=progress `
26+
27+ - 检查正在进行的 ` dd ` 操作的进度(在另一个 shell 中运行此命令):
28+
29+ ` progress `
You can’t perform that action at this time.
0 commit comments