• ulterno@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    3 天前

    TIL, dd has the option conv=fsync that makes it wait until all writing is finished, before exiting.

    So you can just touch /path/to/new/filename and then dd ... of=/path/to/new/filename conv=fsync

    Of course, you would have to do this for each file, in case it is multiple