Linux File Management – How to Delete Files Containing Special Characters in Linux

linux

I've created a linux bash file in a windows text editor. This file contained commands for moving files to another location under linux.

After i ran this file i discovered that destination files have "\r" symbol in their end. (I guess this is because linux and windows use different line end symbols)

So 'Dir' command shows that i have files like these:
"httpd.conf\r"
while 'ls' shows the same filename as:
"httpd.conf?"

How do i delete these files ?

These commands do not work:

Rm httpd.conf\r
Rm httpd.conf\\r
rm 'httpd.conf\r'

I receive the following error:

rm: cannot lstat `httpd.confr': No such file or directory

Best Answer

The simpler way would be:

rm -i httpd.conf?