I tried this now:
grep -RlI "id=\"kw\"" * | xargs vim
This gave me 16 results. He discovered the first result in Vim. I did my first editing and clicked :qbecause I did not know the shortcut to go to the next file.
He threw me to the console (I am connected to the SSHed server). Now my console is confused. All that I type, I don’t see, and whenever I press the enter button, it seems that it is processing the command, but the display / view is screwed, so
[meder@linode]displayed on my console at least halfway. resetdoes nothing, because it seems that he ruined my real console.
Can anyone suggest a solution that does not have the same drawback? Or can someone explain why :qmy console was spoiled from the very first file?
Background information . My computer is DebianUbuntu, I SSHed in the RHEL field. The files I opened were ascii phtml / php file / file files, not some weird binaries with crazy characters in them.
Here is a screenshot of what happened
EDIT # 1: I just typed resetagain and it seemed to work. The first one resetdid not work, I think, because somehow the console was inserting some nameless character into it? In any case, I would like to explain this strange behavior.
source
share