Uhhoh!
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
OrangePumkin@piefed.nl to techsupport@lemmy.worldEnglish · 7 days ago

I am trying to get rid of this folder, but the result is saying that fish expects a variable name after this $. What does it mean ? And how do i get rid of this folder ?

objectstorage.eu-amsterdam-1.oraclecloud.com

message-square
16
link
fedilink
  • cross-posted to:
  • explainlikeimfive@lemmy.world
-1

I am trying to get rid of this folder, but the result is saying that fish expects a variable name after this $. What does it mean ? And how do i get rid of this folder ?

objectstorage.eu-amsterdam-1.oraclecloud.com

OrangePumkin@piefed.nl to techsupport@lemmy.worldEnglish · 7 days ago
message-square
16
link
fedilink
  • cross-posted to:
  • explainlikeimfive@lemmy.world
alert-triangle
You must log in or # to comment.
  • deadbeef79000@lemmy.nz
    link
    fedilink
    arrow-up
    3
    ·
    7 days ago

    It’s just not escaped properly.

    You can probably just get away with putting a backslash \ before the $ so it looks like \$.

    • OrangePumkin@piefed.nlOP
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      2
      ·
      7 days ago

      Didn’t work.

      • deadbeef79000@lemmy.nz
        link
        fedilink
        arrow-up
        2
        ·
        7 days ago

        I’m unfamiliar with fish but that $'\003' also looks a lot like how bash escapes unprintable control characters (ASCII 3 is ‘end of text’ apparently).

        You probably have sh or bash available. Try the same command in that.

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

        Or just delete all directories that start with folder with confirmation (no -f):

        rm -r folder*
        
  • statelesz@slrpnk.net
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 days ago

    Just type rm -rf f and use tab to auto complete.

  • one_old_coder@piefed.social
    link
    fedilink
    English
    arrow-up
    2
    ·
    7 days ago

    Ask loveespresso@retrofed.com.

  • fartsparkles@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    7 days ago

    The quotes and escapes are mangled.

    cd into the directory with the folder to remove, type rm -rf ./ then press tab until the folder you’re looking for is autocompleted after the ./

    • OrangePumkin@piefed.nlOP
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      3
      ·
      7 days ago

      Doesn’t seem to work.

      • fartsparkles@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        7 days ago

        If you’re struggling, might as well either open a file manager like midnight commander to make your life easier.

        • OrangePumkin@piefed.nlOP
          link
          fedilink
          English
          arrow-up
          2
          arrow-down
          4
          ·
          7 days ago

          What’s that ?

          • Janx@piefed.social
            link
            fedilink
            English
            arrow-up
            2
            ·
            7 days ago

            a file manager

          • one_old_coder@piefed.social
            link
            fedilink
            English
            arrow-up
            3
            arrow-down
            1
            ·
            7 days ago

            Google.

  • Lojcs@piefed.social
    link
    fedilink
    English
    arrow-up
    1
    ·
    7 days ago

    Are you sure the name is 'folder'$'\003'? I think the outer quotes might be added by ls. I would try rm -rf 'folder\'\$\'\\003'

    Edit: Or rm -rf 'folder\'$\'\\003'

  • altphoto@lemmy.today
    link
    fedilink
    arrow-up
    1
    arrow-down
    1
    ·
    7 days ago

    You probably don’t own the folder. Use sudo.

    • OrangePumkin@piefed.nlOP
      link
      fedilink
      English
      arrow-up
      2
      arrow-down
      3
      ·
      7 days ago

      Meaning ??

      d5sVJ1TsorJCfyZ.png

      • OrangePumkin@piefed.nlOP
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        3
        ·
        7 days ago

        It’s right here.

        • altphoto@lemmy.today
          link
          fedilink
          arrow-up
          2
          ·
          7 days ago

          Oh. Sudo is the special word meaning admin. So if you have a command like rm and it fails due to permissions you simply add sudo. sudo rm. But I see that your problem is the folder name. So nevermind. Maybe look at the spaces? Maybe you have tab$tab instead of space$space?

techsupport@lemmy.world

techsupport@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !techsupport@lemmy.world

The Lemmy community will help you with your tech problems and questions about anything here. Do not be shy, we will try to help you.

If something works or if you find a solution to your problem let us know it will be greatly apreciated.

Rules: instance rules + stay on topic

Partnered communities:

You Should Know

Reddit

Software gore

Recommendations

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2 users / day
  • 39 users / week
  • 86 users / month
  • 799 users / 6 months
  • 1 local subscriber
  • 3.15K subscribers
  • 167 Posts
  • 1.18K Comments
  • Modlog
  • mods:
  • GatoB@lemmy.world
  • BE: 0.19.19
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org