[prev in list] [next in list] [prev in thread] [next in thread] 

List:       coreutils
Subject:    Re: The output from GNU Core Utilities dd is different in apline and ubuntu
From:       Assaf Gordon <assafgordon () gmail ! com>
Date:       2019-09-09 13:27:43
Message-ID: 8c2809e4-1d56-620f-9005-190676eb41f6 () gmail ! com
[Download RAW message or body]

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



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic