Linux is more secure than windows. In windows admin users will be having admin access and they have all access to softwares so if there is any malware it will easily corrupt the files. But in linux users have very limited access normally. Also windows is vulnerable to social engineering. Any unaware user can open any phishing email and his/her system can be compromised easily but in linux those type of emails will not execute directly.