Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在阅读 osdev 维基。我遇到了这两行代码。
nasm kernel.asm -f bin -o kernel.bin dd if=kernel.bin of=/dev/fd0
我可以理解第一行,但我无法理解第二行。第二行做什么?这个 dd 命令是什么?这里的 /dev/fd0 是什么?有人可以解释一下吗?提前致谢。
dd是一个实用程序,允许您复制文件。该if参数代表“输入文件”并且of是输出文件。这里的命令是将 kernel.bin 复制到 /dev/fd0 设备上。
dd
if
of
它只是将 kernel.bin 复制到软盘 (/dev/fd0)。
$男人dd