Paging in MySQL Command-Line Client

By default MySQL command-line client wraps lines in a SELECT query result and has no paging. You can solve both these problems by using the less command available in Unix/Linux systems. Entering the following command ...

Checking gzip Compressed tar Files

I wrote this very simple bash script to check the gzip compressed tar files generated by cPanel's backup. It attempts to extract each file individually to /dev/null and emails a list of the ones that ...

Importing and Exporting MySQL Databases

Importing and exporting MySQL databases in a Unix/Linux environment can be done easily with a single command. You can even choose to export the database's structure or data only. Exporting is done using the mysqldump ...

Shortcut Keys for Bash

A list of 30 Bash shortcut keys that will save you time. Bash is the default shell in most Linux distributions and the most popular. The shortcuts are divided into 3 sections (navigation, editing and ...

Uses of Netcat in Linux

Netcat is a networking program in UNIX-like systems for reading from and writing to network connections using TCP or UDP. Its man page says "The nc utility is used for just about anything under the ...

Streaming Music and Videos with GNUMP3d

I have been trying different streaming servers the past few days for a project I'm working on. Out of the ones I tested so far none was as easy to install and configure as the ...

Detect if you are Running a Virtual Machine

Would you like to know if your server's OS is running on bare-metal or on a virtual machine. imvirt and virt-what are 2 Linux scripts that allow you to do so easily. Both are open ...