• mosiacmango@lemm.ee
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    6 months ago

    Had to look this up as well. Its not rm specific:

    * is a simple, non-recursive wildcard representing zero or more characters which you can use for paths and file names. ** is a recursive wildcard that can only be used with paths, not file names.

    \ /var/log/**/*.log will match all files whose names end in .log in /var/log and all files in all child directories, recursively.

    More here.