I know Linux doesn't get infected by viruses easily, but I'm suspecting mine has. Most of the commands are not working, and some are doing the wrong thing. If I type a command to open a file, then it opens a program.
I'm not a pro but I know enough about Linux, and I'm not typing wrong.
Problem with Linux Sun JDS
If you suspect that your computer is infected with a virus, then the best thing that you should do is to run a scan on your whole system. Usually, running a virus scan on a computer that is already infected really doesn’t help much.
The reason is that even if you were able to remove the virus from the system, the malware might have already made some changes to the system. And these changes or alterations to the system are permanent. It is not included in the antivirus’ task to restore or fix a file to its original state.
If a file is infected, the antivirus quarantines the file by moving it to its quarantine folder and as a result, the system or the application from where the file originally belongs will now be unable to work properly and sometimes the application will totally not work. And you have no choice but to uninstall it from the system.
This also goes with the operating system. You can still run a full system scan on your computer after updating your antivirus but the changes to the system will be permanent.
The best solution is to format your hard drive and install your operating system again. And this time, replace your current antivirus.