This question already has an answer here:
Sorry if I am not using the right terms for naming these "backspace chars".
I would like to clean up a directory that contains two files which looks like they contain backspace in their name. If I list the directory:
I get this:
-rwxrwxrwx 1 guy guy 729 Jun 26 2007 z_regular.mk -rwxrwxrwx 1 guy guy 1 Sep 7 2016 -rwxrwxrwx 1 guy guy 3220 Sep 27 2
I am thinking I mistakenly imputed the file names with "backspace chars", so we do not see the names any more.
How do I rename these last two files?
I don't know how to call them. Is there an
ls option allowing me to display the file names in hexa or something, and how could I use the latest in an
mv command? I'm with AIX Unix TLS v6.
the files are respectively 2 and 4
-rwxrwxrwx 1 guy guy 1 Sep 7 2016 \177\177 -rwxrwxrwx 1 guy guy 3220 Sep 27 2 \177\177\177\177\177
But solutions found at How can I delete a file with no name doesn't work for my case in AIX.
I tried the below without success so far:
l>ls -l $'\0177\0177' $\0177\0177 not found l>ls -l '\0177\0177' \0177\0177 not found l>ls -l '\177\177' \177\177 not found