Weird symlink

I’ve got a weird symlink

and

But I seem unable to delete the symlink

$ rm file:⁄⁄⁄home⁄j⁄cloud.sbw.media⁄Schule⁄/
rm: cannot remove ‘file:⁄⁄⁄home⁄j⁄cloud.sbw.media⁄Schule⁄/’: Is a directory

Remove the final / in that command. (Don’t remove the character before it, which resembles a / but isn’t one.)

Try using unlink instead of rm

unlink file:⁄⁄⁄home⁄j⁄cloud.sbw.media⁄Schule⁄

@theking2, Dolphin relpaces forward soliduses with fraction slashes in some cases. I also believe that is unhelpful. You likely accidentally pasted that URI as its name.

Put quotes around it - it should delete without any issues.

@pg-tips already provided the correct solution in the third message.

Well yeah it must have happend some way or other. But I’m still unsure how. I had problems to delete it however, is the reason I asked the question.

@theking2, how? (Delete, with it selected, in Dolphin, should delete it.)

image
I seem to see spaces in that link
file:///home/ j/ cloud.sbw.media/ Schule/ and if so then the spaces must be escaped individually or the entire line surrounded by quotes when manipulating it

You are looking at a modified string. The original file name was file:⁄⁄⁄home⁄j⁄cloud.sbw.media⁄Schule⁄. And if you feed this string to xxd you get

00000000: 2066 696c 653a e281 84e2 8184 e281 8468   file:.........h
00000010: 6f6d 65e2 8184 6ae2 8184 636c 6f75 642e  ome...j...cloud.
00000020: 7362 772e 6d65 6469 61e2 8184 5363 6875  sbw.media...Schu
00000030: 6c65 e281 840a                           le....

What looks like / is really .
https://unicd.net/char/2044

Yeah, and if a filename needs quoting, then ls will show it single-quoted. (As it does for the filename '06. m290 Datenbanken... ' in the screenshot.)

It didn´t, which is why I asked.

Did the suggestion from message number 3 work for you? When you use autocomplete on a symbolic link pointing to a directory, bash would ad a trailing slash, which you should remove before submitting the command.

@theking2, what does it do, instead? I ask because it does, for me. Screencasts can be embedded here from unlisted YT videos, or uploaded as GIFs.