How would I know if my MacBook is infected with virus?
I am new with mac OS and Macbook Air 2020 is my first apple device so pardon me if i'm not quite familiar with my laptop. Anyways my problem is when I open my safari there is an ad that pops up and it redirects automatically to a website. And earlier as I boot my laptop there is a message that popped out on my desktop which says "I have been logged in..." something like that. It looks like a message came from terminal and then it automatically closes. What should I do?
MacBook Air (2020 or later)