I was using pscp to copy files from a Windows machine to a Linux machine. I accidentally got the path wrong and now there are files that I can't seem to remove. I think it is because of the slashes in the name... It is telling me the file or directory doesn't exist. I am attaching a photo. Thanks!
You can use the "-i" (interactive) option of /bin/rm. Of course, you need to be very careful. In this particular case I would do this:
cd && /bin/rm -i *Apps*
It is possible that "Apps" will not match anything, and in that case (being VERY careful):
cd && /bin/rm -i *
This is typically the best way to delete files that have hidden characters or are otherwise difficult to name explicitly on the command line. If matching the backslash character works with matching backslashes, it is a better solution than this one.
In both cases you will be prompted to confirm deletion- make sure you don't answer yes to files you want to keep.