`-a` 的 `-D` 和 `-g` 标志周围的 rsync 标志混淆

Tom*_*Tom 2 rsync

似乎rsync通常使用-a等于的标志来调用-rlptgoD (no -H,-A,-X)

    -g, --group                 preserve group
        --devices               preserve device files (super-user only)
        --specials              preserve special files
    -D                          same as --devices --specials
Run Code Online (Sandbox Code Playgroud)

我感到困惑的是为什么-a包含-g-D-g似乎什么都-D做,那你为什么要包括-D

Sve*_*ven 6

你错了。-g等于--group,不包括--devices--specials。缩进并不意味着对功能进行分组,更多地将其作为一个包含 3 列的表格来阅读,其中包含短开关、长开关和描述,其中--devices--specials没有简短的形式。