this post was submitted on 13 Dec 2023
10 points (100.0% liked)

Linux Questions

1149 readers
25 users here now

Linux questions Rules (in addition of the Lemmy.zip rules)

Tips for giving and receiving help

Any rule violations will result in disciplinary actions

founded 1 year ago
MODERATORS
 

I was just about to try to compile btop with cmake, which gave me some errors about python. which cmake returned ~/.local/bin/cmake which made me curious. After listing ~/.local/bin I found several files there, which all have a similar script within them. from import main

#!/usr/bin/python3.11
# -*- coding: utf-8 -*-
import re
import sys
from cmake import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())

Have I caught some sort of malware/virus? Are these save to remove? I know that pip installs --user binaries into ~/.local/bin, but after inspecting it, there are just these

pip list --user
Package      Version
------------ -------
configparser 6.0.0
protonup     0.1.5
razer-cli    2.2.0
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 11 months ago

move them to another directory and remove any executable flag ( chmod -x * ) Then see if anything breaks.