I'm experiencing hanging for the first time.
How do I kill all programs in such a case. Secondly please inform me how I can find out whether my laptop is infected with virus or not. I am not using any antivirus package at present.
To kill all the processes that you have the permission to kill,open terminal and run the command
kill -15 -1 or kill -9 -1.
kill -15 -1
kill -9 -1
To learn how to scan read the answer to this question:
How can I scan for possible viruses on my Ubuntu system?