Skip to main content

GENERAL

Windows 7 Default Power Button Action

Here is how to change default action for Power button in Windows 7.

1) Click Start button

2) Righ-click on the Power button in lower right corner

3) Select Properties

4) Choose default Power button action (Switch user, Log off, Lock, Restart, Sleep, Hibernate or Shut down)

5) Click the OK button

MySQL - Clean Up Binary Log Files

In default MySQL installation binary files may be located in 

/usr/local/var/

or

/var/lib/mysql/

Their names are ending with -bin.000001, -bin.000002, -bin.000003 etc.

Here is the command that could help you to find location of the logs:

mysql> show variables like '%home%';

As a result, you'll get the list with the locations of the logs.

In order to clear them all run the following command:

mysql> reset master;

MySQL - List and Kill Processes

If you need to see running processes in MySQL run the following command after you login into MySQL command line:

How to disable Apport error reporting in Ubuntu

What is Apport

Ubuntu 12.04 contains error reporting system named Apport that can send error information to Ubuntu center in case that something goes wrong on your system.

Apport is a system which:

Clear and Disable Bash History

Descended from the Bourne Shell, Bash is a GNU product, the "Bourne Again SHell." It's the standard command line interface on most Linux machines. It excels at interactivity, supporting command line editing, completion, and recall.