I was setting up a cloud server and saw that I accidentally added a folder named ^[[4~
(with escape code). I want to see what is inside and if that was just a mistake then remove that directory. However I cannot cd
nor ls
the contents. I tried finding out the escape code so that I could enter a command like cd x1b[30m;
and hope that it would get me in the directory.
What if I was to cd
or remove by searching for the first directory listed with ls
. Would that be possible? Because when I do a ls |grep 4
two results come up and one of them is the one I'm trying to access.
Either finding out the folder name in escape string or changing the directory to the first directory ls
finds might be a solution here. How can I approach this problem?