• gravitas_deficiency@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    7
    ·
    edit-2
    18 hours ago

    In that case, I think you want

    rm -rf "'folder'\$'\\003'"
    

    Note the double escape before 003, which will render to the character literal \

    Alternatively, start typing

    rm -rf \'fo
    

    And then hit tab until fish autocompletes the directory you want to kill, and run it.

    Side note: i would absolutely not tolerate directories named like that lol