On 2019-09-09 6:39 a.m., 薛帅 wrote:
In Ubuntu 18.04.1 LTS, the `dd` command output three lines.
While in apline 3.9.0, the `dd` command output only two lines.

Alpine linux does not use "coreutils" programs in the default
installation. Most of the equivalent programs are from busybox.

To see which implementation you are using,

   # which dd
   # ls -l /bin/dd
   lrwxrwxrwx  1 root  root 12 Sep  9 13:22 /bin/dd -> /bin/busybox

coreutils' dd supports "--version":

  $ dd --version | head -n1
  dd (coreutils) 8.30

while busybox's dd will show its version in the help/usage screen
(which is shown when unsupported option "--version" is used):

   # dd --version 2>&1 | head -n1
   BusyBox v1.29.3 (2019-01-24 07:45:07 UTC) multi-call binary.

 - assaf

Reply via email to