RBlind
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
OrangePumkin@piefed.nl to linux4noobs@programming.devEnglish · 2 months 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
31
link
fedilink
5

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 linux4noobs@programming.devEnglish · 2 months ago
message-square
31
link
fedilink
  • Successful_Try543@feddit.org
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 months ago

    Are the hyphens apostrophes and the backslash part of the folder name too?

    If so, try \'folder\'\$\'\\003\' escaping the hyphens apostrophes ', the dollar sign $ and the backslash \.

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

      d5sVJ1TsorJCfyZ.png

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

        Do you see the folder with the strange name here ?

        • Digit@lemmy.wtf
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 months ago

          Oh hey, seeing that has just given me another idea (not sure if anyone else mentioned this yet elsewhere further down in the conversation… but…)

          Tried just using a unique portion of the name that’s easy to type, along with asterisks for the rest? e.g. rmdir *old*00* (or rm -r if it’s not an empty dir you want rid of).

        • Successful_Try543@feddit.org
          link
          fedilink
          arrow-up
          1
          ·
          2 months ago

          As the other commenters and I have mentioned, you should try escaping any of the special characters ', $, and \ by a backslash, i.e. \', \$ and \\

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

            rm -rf command ?

            • Successful_Try543@feddit.org
              link
              fedilink
              arrow-up
              1
              ·
              2 months ago

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

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

      There are no hyphens.

      • Successful_Try543@feddit.org
        link
        fedilink
        arrow-up
        1
        ·
        2 months ago

        sorry, I mean apostrophes.

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

      Nothing happened.

linux4noobs@programming.dev

linux4noobs@programming.dev

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: !linux4noobs@programming.dev

linux4noobs


Noob Friendly, Expert Enabling

Whether you’re a seasoned pro or the noobiest of noobs, you’ve found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux’s ongoing evolution.


Seeking Support?
  • Mention your Linux distro and relevant system details.
  • Describe what you’ve tried so far.
  • Share your solution even if you found it yourself.
  • Do not delete your post. This allows other people to see possible solutions if they have a similar problem.
  • Properly format any scripts, code, logs, or error messages.
  • Be mindful to omit any sensitive information such as usernames, passwords, IP addresses, etc.

Community Rules

  • Keep discussions respectful and amiable. This community is a space where individuals may freely inquire, exchange thoughts, express viewpoints, and extend help without encountering belittlement. We were all a noob at one point. Differing opinions and ideas is a normal part of discourse, but it must remain civil. Offenders will be warned and/or removed.
  • Posts must be Linux oriented
  • Spam or affiliate links will not be tolerated.
Visibility: Public
globe

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

  • 1 user / day
  • 19 users / week
  • 241 users / month
  • 1.1K users / 6 months
  • 2 local subscribers
  • 4.33K subscribers
  • 111 Posts
  • 1.05K Comments
  • Modlog
  • mods:
  • PlutoParty@programming.dev
  • BE: 0.19.20
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org