after I ran rkhunter it showed suspected hidden file /usr/bin/.piny.py.swp. After a little google I came to know that it is made by VIM. But at that time VIM was not installed in my system. Well I ran vim -r .piny.py.swp and the result looks something like this: /usr/bin/piny.py^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^MU3210^@^@^@^@#"! ^S^RU^@^@... continued. How can I see what all is this. Is there anything to worry.
Edit 1: Does .piny.py exist? Yes didn't exit normally? Yes it did not exit normally. I have to press CTRL + Z to exit
Further there was a line of "".piny.py" [noeol][converted] 1L, 12297C" at the end of file vi piny.py and this posts says: "especially including the last line. If there is no end-of-line (eol) on the last line, then it is an unusual situation and the file most certainly was not created by a standard UNIX editor."
The
swp
file can be created byvi
as well. Someone (check the ownership and times) didvi .piny.py
, and didn't exit normally. Does.piny.py
exist? That might be a concern, otherwise just delete.pliny.py.swp
Read
man vi ex
. Use of the.swp
file is usuallyto recover
.piny.py
..swp
files are meant forvi
, not for humans.Using
^Z
simply suspendsvi
(so you canbg
orcont
inue it). Exitvi
withZZ
,:wq
,:q
, or even:q!
.