this post was submitted on 18 Jun 2026
0 points (50.0% liked)

techsupport

3168 readers
2 users here now

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

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] deadbeef79000@lemmy.nz 4 points 3 weeks ago (1 children)

It's just not escaped properly.

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

[–] OrangePumkin@piefed.nl 0 points 3 weeks ago (1 children)
[–] deadbeef79000@lemmy.nz 2 points 3 weeks 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*