Spyke
  1. Try ![email protected] next time, you'll get downvoted here.
  2. Don't put everything in your home directory (I see ~ in the path), create a folder named Projects or something like that, and work there.
  3. Try to see if your shell has tab-completion. Type folder<TAB><TAB> (the TAB key twice) and see if your offending folder is selected, that would be easier. Or better, type rm -r folder<TAB><TAB>.
  4. Don't put $ or special characters like ? in your names, it's always a bad idea.
13
lemmy.world

Those chars aren't what they seem. The $'\003' is how gnu renders a byte it can't print.

Do

rm -r (printf 'folder\003')

Printf is your friend here.

7

try rm -rf folder and then press tab to autocomplete the folder name for you

4
lemmy.world

The $ is unquoted and so it's interpreted as a if variable name will follow. That does not happen (a literal string follows the $) so it casts an error

You probably are looking for this : rm -r 'folder'$'003'

The slash will cause the shell or interpret the next character literally (as as $ and not as variable indicator)

3
BlackEcoreply
lemmy.blackeco.com

You should wrap rm -r 'folder'\$'003' in backticks, because in my Lemmy client the backwards slash wasn't showing.

7

Did you try with bash autocomplete?

rm -r folder

And see how it spells it? Also you could wildcard depending on what you (don't) want to delete in the process.

1
remonreply
ani.social

Is there an important reason why this folder needs to be deleted? If not I'd just leave it and move on.

1

You reached the end

When i am trying to remove the underlined folder using the rm command, this is the result that is being shown. What does this mean ?? | Spyke