Score:0

Suspecious hidden .swp file in usr/bin

by flag

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."

waltinator avatar
it flag
Using `^Z` simply suspends `vi` (so you can `bg` or `cont`inue it). Exit `vi` with `ZZ`, `:wq`, `:q`, or even `:q!`.
Score:1
it flag

The swp file can be created by vi as well. Someone (check the ownership and times) did vi .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 usually

vi -r.piny.py.swp .piny.py
#
# or, using the default behavior
vi -r .pliny.py

to recover .piny.py. .swp files are meant for vi, not for humans.

Using ^Z simply suspends vi (so you can bg or continue it). Exit vi with ZZ, :wq, :q, or even :q!.

Ajay avatar
by flag
Waltinator I have edited the question and added output.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.