this post was submitted on 17 Jun 2026
-6 points (35.0% liked)
Explain Like I'm Five
21442 readers
90 users here now
Simplifying Complexity, One Answer at a Time!
Rules
- Be respectful and inclusive.
- No harassment, hate speech, or trolling.
- Engage in constructive discussions.
- Share relevant content.
- Follow guidelines and moderators' instructions.
- Use appropriate language and tone.
- Report violations.
- Foster a continuous learning environment.
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
$indicates that the string following is an env variable, but you just have a closing quote, so bash is confused.If you want the literal character
$in your command, you must escape it:\$Edit: afaik my answer does not change based on the fact that this is
fishinstead ofbashorzsh. The$is outside of the single quotes, and is thus being interpreted as an env var anchor.They are using fish, FYI. Not sure how much of a difference this makes.
The actual folder is 'folder'$'\003' .
In that case, I think you want
Note the double escape before
003, which will render to the character literal\Alternatively, start typing
And then hit tab until
fishautocompletes the directory you want to kill, and run it.Side note: i would absolutely not tolerate directories named like that lol
Thanks for the tip.
Is this some school task...? Why is there a folder with such a name 😅
Apparently yes. I'm learning things on my own.