Linux has segmented working environments which secure it from the attack of virus. However, Windows OS is not much segmented and thus it is more vulnerable to threats. Another significant reason for Linux being more secure is that Linux has very few users when compared to Windows.