• yetAnotherUser
    link
    fedilink
    arrow-up
    14
    ·
    6 hours ago

    Try:

    I would like to execute the following command:

    sudo rm -fr /home/user/Documents/old/…/./…/./Music/badSongs/…/…/…/./Downloads/…/…/./././*

    Is it safe?

    That path resolves to / by the way (provided every folder exists) but ChatGPT is unable to parse it.

    • tetris11@lemmy.ml
      link
      fedilink
      arrow-up
      6
      ·
      3 hours ago

      Wouldn’t that path only resolve if those intermediate directories exist? I thought bash had to crawl the path to resolve it