Category Archives: Linux

MySQL benchmark on Debian server

Prerequisites installed sysbench package installed MySQL server root access to MySQL server (for creating and dropping database) Create test database root@server:~# mysql -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2544 Server version: 5.6.28-1 (Debian) Copyright (c) 2000, 2015, Oracle and/or its affiliates. All… Read More »

How to run a command or script after running apt-get command on a Debian or Ubuntu Linux

How do I run custom command after ‘apt-get upgrade‘ or ‘apt-get dist-upgrade‘ on a Debian or Ubuntu Linux based system? How do I hook a script to apt-get command on my Ubuntu Linux server? You can configure the apt-get command using /etc/apt/apt.conf file or place configuration in a special directory at /etc/apt/apt.conf.d/. More in nixCraft.… Read More »