Re: The output from GNU Core Utilities dd is different in apline and ubuntu

2019-09-09 Thread Assaf Gordon

Hello,

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,
try:

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

Also,
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.


regards,
 - assaf




The output from GNU Core Utilities dd is different in apline and ubuntu

2019-09-09 Thread 薛帅
Dear all,

For convenience, I test the following command with docker.

In Ubuntu 18.04.1 LTS, the `dd` command output three lines.
```
dd if=/dev/zero of=/tmp/out bs=512 count=10
10+0 records in
10+0 records out
5120 bytes (5.1 kB, 5.0 KiB) copied, 6.6846e-05 s, 76.6 MB/s
```

While in apline 3.9.0, the `dd` command output only two lines.
``` 
dd if=/dev/zero of=/tmp/out bs=512 count=10
10+0 records in
10+0 records out
```

Any idea about it?

Thank you.