How can I stop a running MySQL query?

I connect to mysql from my Linux shell. Every now and then I run a SELECT query that is too big. It prints and prints and I already know this is not what I meant. I would like to stop the query. Hitting Ctrl+C (a couple of times) kills mysql completely and takes me back … Read more

http://www.msftncsi.com/ncsi.txt

What is www.msftncsi.com ? If you are running a firewall one of the most common sites you’ll run across is www.mstfncsi.com. This is because the url www.msftncsi.com is generally used by Windows machines to verity that there is network connectivity. A Windows machine (Windows 8, Windows 7 and even Windows Vista I believe) will try … Read more

TOP command in Linux

top provides an ongoing look at processor activity in real time. It displays a listing of the most CPU-intensive tasks on the system, and can provide an interactive interface for manipulating processes. It can sort the tasks by CPU usage, memory usage and runtime. can be better configured than the standard top from the procps suite. … Read more

How to I disable echo cancellation module without removing the hardware?

You’ll need to: Stop Asterisk Stop DAHDI Unload the driver for your card from the Linux kernel Load the driver for your card with the module parameter “vpmsupport=0”. You can stop Asterisk with the command: asterisk -rx “core stop gracefully” You can stop DAHDI with the command: /etc/init.d/dahdi stop In order to find the kernel … Read more

find the number of CPU cores on Linux

Multi-core CPU processors are common nowadays, including dual-core processors (e.g., Intel Core Duo), quad-core processors (e.g., Intel Core i5), and hexa-core processors (e.g., AMD Phenom II X6). Also, many server-grade physical machines are equipped with more than one CPU processor. To find the number of physical CPUs: $ cat /proc/cpuinfo | grep “^physical id” | … Read more