I have found a file called ¬
on an old legacy Solaris server and I am confused about how to interact with it on the command line (bash 2.05).
¬ has the same function on the command line as the home
key. When I press it, it moves the cursor to the start of the line. So if I try to remove it by typing rm ¬
I end up with with just rm
.
I created a file called file
with vim and was able to insert the ¬ character. The thing is, each program sees this character differently. Some examples:
bash-2.05# cat file
¬
bash-2.05# vim file
¬
bash-2.05# vi file
\302\254
bash-2.05# less x
"x" may be a binary file. See it anyway?
<C2><AC>
bash-2.05# more file
¬
bash-2.05# ls
¬
bash-2.05# ls -q
??
bash-2.05# ls -b
\302\254
I was able to remove the file by running rm $(cat file)
. But my question is, how do I remove it by typing it on the command line? rm \302\254
didn't work and I'm not sure what to do with the Hex representation that less
gives.
Is there a special way to insert ¬ into the command line?
I realise this might be quite hard to replicate since it is so old, but I thought I would ask anyway.
Thanks, Patrick
rm ¬
will work.rm -i $(cat file)
Ctrl+V
and then the¬
character types it out for you? That may depend a lot on keyboard setup